字符型设备驱动
大体情况如下
重要的结构结构体及函数
cdev结构体
file_operations
cdev_init()
cdev_alloc()
cdev_add()
cdev_del()
register_chrdev_region()
alloc_chrdev_region()
unregister_chrdev_region()
file_operations结构体中的重要函数
llseek()
read()
write()
readdir()
ioctl()
mmap()
open()
release()
poll()
select()
aio_read()
aio_write()
明白哪些值怎么填充
Linux字符设备驱动的重要组成部分
1,字符设备驱动模块的加载与卸载函数
2,字符设备驱动中的file_operations结构体中成员有函数
3,file_operation结构体模板
4,内核空间与用户空间的数据传递函数
实例之globemem虚拟设备驱动
头文件,宏,结构体
加载与卸载函数
初始化
读写函数
seek()、ioctl()
使用文件私有数据
加入支持两个设备的驱动
。。。。。。。