TTY之struct tty_buffer

来源:互联网 发布:如何做网络黄牛 编辑:程序博客网 时间:2024/05/16 16:09
struct tty_buffer { union {  struct tty_buffer *next;  struct llist_node free; }; int used; int size; int commit; int read; int flags; /* Data points here */ unsigned long data[0];};
 
struct tty_bufhead { struct tty_buffer *head; /* Queue head */ struct work_struct work; struct mutex    lock; atomic_t    priority; struct tty_buffer sentinel; struct llist_head free;  /* Free queue head */ atomic_t    mem_used;    /* In-use buffers excluding free list */ int     mem_limit; struct tty_buffer *tail; /* Active buffer */};
 
0 0
原创粉丝点击