textbox

IT博客 联系 聚合 管理
  103 Posts :: 7 Stories :: 22 Comments :: 0 Trackbacks

char devices

1.注册设备号(MKDEV ,MAJOR,alloc_chrdev_region , register_chrdev_region)
2.分配设备 file_operations 结构体变量空间(cdev_alloc)
3.关联 file_operations 结构体变量 与设备号(cdev_add)
4.实现 file_operations 结构体变量 内的 接口函数。
5.关联 module_init 和 module_exit




posted on 2009-10-20 12:27 零度 阅读(301) 评论(0)  编辑 收藏 引用 所属分类: Linux
只有注册用户登录后才能发表评论。