摘要: via:http://blog.sina.com.cn/s/blog_7ec8fc2c010157lc.html1、驱动程序设计1)驱动分类驱动这里分为 字符设备驱动、网络接口驱动、块设备驱动!这三类,其中前两者是重点。①、字符设备字符设备是一种 按自己来访问 的设备,字符驱动则负责驱动字符设备,这... 阅读全文
posted @ 2015-05-11 11:22 丿踏遍青山人未老 阅读(501) 评论(0) 推荐(0) 编辑
摘要: via:http://blog.chinaunix.net/uid-20672257-id-3142809.html1、写出open、write函数 2、告诉内核 1)、定义一个struct file_operations结构并填充好static struct file_operations fi... 阅读全文
posted @ 2015-05-11 10:53 丿踏遍青山人未老 阅读(383) 评论(0) 推荐(0) 编辑