摘要: Linux2.6内核中使用cdev结构体描述字符设备: structcdev{ structkobjectkobj;//内嵌的kobject对象,描述设备引用计数 structmodule*owner;//所属模块,一般赋值为THIS_MODULE structfile_operations*ops;//文件操作结构体 structlist_headlist; dev_tdev;//设备号 uns... 阅读全文
posted @ 2010-10-14 21:56 yangzd 阅读(1355) 评论(0) 推荐(0) 编辑