TTY之struct tty_ldisc
来源:互联网 发布:软件公寓如何申请 编辑:程序博客网 时间:2024/06/01 10:43
struct tty_ldisc { struct tty_ldisc_ops *ops; struct tty_struct *tty;};
struct tty_ldisc_ops { int magic; char *name; int num; int flags;
/* * The following routines are called from above. */ int (*open)(struct tty_struct *); void (*close)(struct tty_struct *); void (*flush_buffer)(struct tty_struct *tty); ssize_t (*read)(struct tty_struct *tty, struct file *file, unsigned char __user *buf, size_t nr); ssize_t (*write)(struct tty_struct *tty, struct file *file, const unsigned char *buf, size_t nr); int (*ioctl)(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); long (*compat_ioctl)(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); void (*set_termios)(struct tty_struct *tty, struct ktermios *old); unsigned int (*poll)(struct tty_struct *, struct file *, struct poll_table_struct *); int (*hangup)(struct tty_struct *tty);
/* * The following routines are called from below. */ void (*receive_buf)(struct tty_struct *, const unsigned char *cp, char *fp, int count); void (*write_wakeup)(struct tty_struct *); void (*dcd_change)(struct tty_struct *, unsigned int); int (*receive_buf2)(struct tty_struct *, const unsigned char *cp, char *fp, int count);
struct module *owner;
int refcount;};
- TTY之struct tty_ldisc
- TTY之struct tty_buffer
- TTY之struct consw
- TTY之struct console
- linux 0.11之tty
- linux之终端tty
- TTY之register_console
- tty_ldisc线路规程简述
- linux tty 之分层结构
- 串口tty驱动之初始化
- TTY
- tty
- tty
- tty
- TTY
- tty
- tty
- TTY
- 201703001
- 终于决定勇敢地向产品迈出第一步
- LeetCode
- 用jvisualvm分析dump文件
- PTA 5-19 列车厢调度 (25分)【stack】
- TTY之struct tty_ldisc
- 关于TPshop2.0访问内页跳转首页问题
- windows平台下人工智能平台TensorFlow安装--(学习笔记)
- 每天一组Linux命令:date,clock,hwclock,时间时区设置
- 垂距限值法压缩矢量曲线
- java学习第八天之抽象。继承和多态
- 面向模式的软件体系结构(卷1)-体系结构模式
- hdu1025Constructing Roads In JGShining's Kingdom(LIS最大上升子序列)
- Android 购物车UI及逻辑实现