1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16struct uart_driver {
struct module *owner; /* 拥有该uart_driver的模块,一般为THIS_MODULE */
const char *driver_name; /* 串口驱动名,串口设备文件名以驱动名为基础 */
const char *dev_name; /* 串口设备名 */
int major; /* 主设备号 */
int minor; /* 次设备号 */
int nr; /* 该uart_driver支持的串口个数(最大) */
struct console *cons; /* 其对应的console.若该uart_driver支持serial console,否则为NULL */
/*
* these are private; the low level driver should not
* touch these; they should be initialised to NULL
*/
struct uart_state *state;
struct tty_driver *tty_driver;
};
Linux驱动开发杂记(0x10) - uart_driver结构体
-------------本文结束感谢您的阅读-------------
本文标题:Linux驱动开发杂记(0x10) - uart_driver结构体
文章作者:Vinx
发布时间:2018年11月22日 - 15:06
最后更新:2023年09月18日 - 11:10
原始链接:https://blog.vinkvin.com/post/16/
许可协议: 署名-非商业性使用-禁止演绎 4.0 国际 转载请保留原文链接及作者。