XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
tty_port.h File Reference
#include <linux/kfifo.h>
#include <linux/kref.h>
#include <linux/mutex.h>
#include <linux/tty_buffer.h>
#include <linux/tty_driver.h>
#include <linux/wait.h>
Include dependency graph for tty_port.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tty_port_operations
 
struct  tty_port_client_operations
 
struct  tty_port
 
struct  dclg_tty_port_tty
 

Macros

#define TTY_PORT_INITIALIZED   0 /* device is initialized */
 
#define TTY_PORT_SUSPENDED   1 /* device is suspended */
 
#define TTY_PORT_ACTIVE   2 /* device is open */
 
#define TTY_PORT_CTS_FLOW   3 /* h/w flow control enabled */
 
#define TTY_PORT_CHECK_CD   4 /* carrier detect enabled */
 
#define TTY_PORT_KOPENED   5 /* device exclusively opened by kernel */
 
#define scoped_tty()   ((struct tty_struct*)(_dclg.lock))
 

Functions

void tty_port_init (struct tty_port *port)
 
void tty_port_link_wq (struct tty_port *port, struct workqueue_struct *flip_wq)
 
void tty_port_link_device (struct tty_port *port, struct tty_driver *driver, unsigned index)
 
struct device * tty_port_register_device (struct tty_port *port, struct tty_driver *driver, unsigned index, struct device *device)
 
struct device * tty_port_register_device_attr (struct tty_port *port, struct tty_driver *driver, unsigned index, struct device *device, void *drvdata, const struct attribute_group **attr_grp)
 
struct device * tty_port_register_device_attr_serdev (struct tty_port *port, struct tty_driver *driver, unsigned index, struct device *host, struct device *parent, void *drvdata, const struct attribute_group **attr_grp)
 
void tty_port_unregister_device (struct tty_port *port, struct tty_driver *driver, unsigned index)
 
int tty_port_alloc_xmit_buf (struct tty_port *port)
 
void tty_port_free_xmit_buf (struct tty_port *port)
 
void tty_port_destroy (struct tty_port *port)
 
void tty_port_put (struct tty_port *port)
 
struct tty_struct * tty_port_tty_get (struct tty_port *port)
 
void tty_port_tty_set (struct tty_port *port, struct tty_struct *tty)
 
bool tty_port_carrier_raised (struct tty_port *port)
 
void tty_port_raise_dtr_rts (struct tty_port *port)
 
void tty_port_lower_dtr_rts (struct tty_port *port)
 
void tty_port_hangup (struct tty_port *port)
 
void __tty_port_tty_hangup (struct tty_port *port, bool check_clocal, bool async)
 
void tty_port_tty_wakeup (struct tty_port *port)
 
int tty_port_block_til_ready (struct tty_port *port, struct tty_struct *tty, struct file *filp)
 
int tty_port_close_start (struct tty_port *port, struct tty_struct *tty, struct file *filp)
 
void tty_port_close_end (struct tty_port *port, struct tty_struct *tty)
 
void tty_port_close (struct tty_port *port, struct tty_struct *tty, struct file *filp)
 
int tty_port_install (struct tty_port *port, struct tty_driver *driver, struct tty_struct *tty)
 
int tty_port_open (struct tty_port *port, struct tty_struct *tty, struct file *filp)
 
void tty_kref_put (struct tty_struct *tty)
 

Variables

const struct tty_port_client_operations tty_port_default_client_ops
 

Macro Definition Documentation

◆ scoped_tty

#define scoped_tty ( )    ((struct tty_struct*)(_dclg.lock))

◆ TTY_PORT_ACTIVE

#define TTY_PORT_ACTIVE   2 /* device is open */

◆ TTY_PORT_CHECK_CD

#define TTY_PORT_CHECK_CD   4 /* carrier detect enabled */

◆ TTY_PORT_CTS_FLOW

#define TTY_PORT_CTS_FLOW   3 /* h/w flow control enabled */

◆ TTY_PORT_INITIALIZED

#define TTY_PORT_INITIALIZED   0 /* device is initialized */

◆ TTY_PORT_KOPENED

#define TTY_PORT_KOPENED   5 /* device exclusively opened by kernel */

◆ TTY_PORT_SUSPENDED

#define TTY_PORT_SUSPENDED   1 /* device is suspended */

Function Documentation

◆ __tty_port_tty_hangup()

void __tty_port_tty_hangup ( struct tty_port *  port,
bool  check_clocal,
bool  async 
)

◆ tty_kref_put()

void tty_kref_put ( struct tty_struct *  tty)

◆ tty_port_alloc_xmit_buf()

int tty_port_alloc_xmit_buf ( struct tty_port *  port)

◆ tty_port_block_til_ready()

int tty_port_block_til_ready ( struct tty_port *  port,
struct tty_struct *  tty,
struct file *  filp 
)

◆ tty_port_carrier_raised()

bool tty_port_carrier_raised ( struct tty_port *  port)

◆ tty_port_close()

void tty_port_close ( struct tty_port *  port,
struct tty_struct *  tty,
struct file *  filp 
)

◆ tty_port_close_end()

void tty_port_close_end ( struct tty_port *  port,
struct tty_struct *  tty 
)

◆ tty_port_close_start()

int tty_port_close_start ( struct tty_port *  port,
struct tty_struct *  tty,
struct file *  filp 
)

◆ tty_port_destroy()

void tty_port_destroy ( struct tty_port *  port)

◆ tty_port_free_xmit_buf()

void tty_port_free_xmit_buf ( struct tty_port *  port)

◆ tty_port_hangup()

void tty_port_hangup ( struct tty_port *  port)

◆ tty_port_init()

void tty_port_init ( struct tty_port *  port)

◆ tty_port_install()

int tty_port_install ( struct tty_port *  port,
struct tty_driver *  driver,
struct tty_struct *  tty 
)

◆ tty_port_link_device()

void tty_port_link_device ( struct tty_port *  port,
struct tty_driver *  driver,
unsigned  index 
)

◆ tty_port_link_wq()

void tty_port_link_wq ( struct tty_port *  port,
struct workqueue_struct *  flip_wq 
)

◆ tty_port_lower_dtr_rts()

void tty_port_lower_dtr_rts ( struct tty_port *  port)

◆ tty_port_open()

int tty_port_open ( struct tty_port *  port,
struct tty_struct *  tty,
struct file *  filp 
)

◆ tty_port_put()

void tty_port_put ( struct tty_port *  port)

◆ tty_port_raise_dtr_rts()

void tty_port_raise_dtr_rts ( struct tty_port *  port)

◆ tty_port_register_device()

struct device * tty_port_register_device ( struct tty_port *  port,
struct tty_driver *  driver,
unsigned  index,
struct device *  device 
)

◆ tty_port_register_device_attr()

struct device * tty_port_register_device_attr ( struct tty_port *  port,
struct tty_driver *  driver,
unsigned  index,
struct device *  device,
void *  drvdata,
const struct attribute_group **  attr_grp 
)

◆ tty_port_register_device_attr_serdev()

struct device * tty_port_register_device_attr_serdev ( struct tty_port *  port,
struct tty_driver *  driver,
unsigned  index,
struct device *  host,
struct device *  parent,
void *  drvdata,
const struct attribute_group **  attr_grp 
)

◆ tty_port_tty_get()

struct tty_struct * tty_port_tty_get ( struct tty_port *  port)

◆ tty_port_tty_set()

void tty_port_tty_set ( struct tty_port *  port,
struct tty_struct *  tty 
)

◆ tty_port_tty_wakeup()

void tty_port_tty_wakeup ( struct tty_port *  port)

◆ tty_port_unregister_device()

void tty_port_unregister_device ( struct tty_port *  port,
struct tty_driver *  driver,
unsigned  index 
)

Variable Documentation

◆ tty_port_default_client_ops

const struct tty_port_client_operations tty_port_default_client_ops
extern