主题 : misc非标准字符设备 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 3815
精华: 0
发帖: 9
金钱: 85 两
威望: 66 点
综合积分: 18 分
注册时间: 2009-02-10
最后登录: 2011-09-15
楼主  发表于: 2009-07-13 13:40

 misc非标准字符设备

以前接触的linux字符设备驱动,如LED、键盘、蜂鸣器等,都是用register_chrdev(),现在开发板带的驱动都用misc_register(),看不太明白了,麻烦高手解释一下,什么是非标准字符设备misc啊?有没有介绍着方面的资料啊?谢谢
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-07-13 15:03
misc设备只是一个包装,本质上就是字符型设备。看misc_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."