主题 : 求助:2.6.32版本中,创建设备文件函数是什么,不是devfs_mk_cdev 复制链接 | 浏览器收藏 | 打印
坚持,重复,总结就是成功
级别: 新手上路
UID: 22598
精华: 0
发帖: 23
金钱: 115 两
威望: 23 点
综合积分: 46 分
注册时间: 2010-06-03
最后登录: 2011-01-03
楼主  发表于: 2010-08-07 11:23

 求助:2.6.32版本中,创建设备文件函数是什么,不是devfs_mk_cdev

2.6.32版本中,创建设备文件函数是什么,不是devfs_mk_cdev。。。。。。。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-08-07 14:46
有很多,通用的字符型设备可以用cdev_add, 或者传统的register_chrdev() + device_create()/device_register()方式。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."