struct tty_port

include/linux/tty.h

struct tty_port {

    struct tty_struct    *tty;        /* Back pointer */
    const struct tty_port_operations *ops;    /* Port operations */
    spinlock_t        lock;        /* Lock protecting tty field */
    int            blocked_open;    /* Waiting to open */
    int            count;        /* Usage count */
    wait_queue_head_t    open_wait;    /* Open waiters */
    wait_queue_head_t    close_wait;    /* Close waiters */
    wait_queue_head_t    delta_msr_wait;    /* Modem status change */
    unsigned long        flags;        /* TTY flags ASY_*/
    unsigned char        console:1;    /* port is a console */
    struct mutex        mutex;        /* Locking */
    struct mutex        buf_mutex;    /* Buffer alloc lock */
    unsigned char        *xmit_buf;    /* Optional buffer */
    unsigned int        close_delay;    /* Close port delay */
    unsigned int        closing_wait;    /* Delay for output */
    int            drain_delay;    /* Set to zero if no pure time
                           based drain is needed else
                           set to size of fifo */
    struct kref        kref;        /* Ref counter */
};
發佈了67 篇原創文章 · 獲贊 1 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章