摘要: 字符设备的内核抽象顾名思义,字符设备驱动程序管理的核心对象是字符设备。从字符设备驱动程序的设计框架角度出发,内核为字符设备抽象出了一个具体的数据结构struct cdev,其定义如下:<include/linux/cdev.h>struct cdev { struct kobject kobj; struct module *owner; const struct file_operations*ops; struct list_head list; dev_t dev; unsigned int count;};在本章后续的内容中将陆续看到它们的实际用法,这里只把这些成员的作用简 阅读全文
posted @ 2012-02-29 19:50 博文视点(北京)官方博客 阅读(180) 评论(0) 推荐(0) 编辑