日期:2014-05-16  浏览次数:20639 次

Linux: 设备模块/io模块-系统api/libs-ap层的架构说明

 Logs:

-what-            -when-            -who-    

v1.o,           09-21-2012,      mars

 

Content:
io module
--------------------- input_allocate_polled_device();
input poll idevices   -------- devices module ----- devices drivers ----- kernel
--------------------- input_register_polled_device(idev_i), input_report_abs();
system api
 event api
...
---------------------
ap
 

io module
---------------------- misc_regisger(dev_i);
devices                ------- devices module ----- devices drivers ----- kernel

---------------------- struct miscdevice dev_i;
dev_i.name,        ------- device id, inode,file name  -----  file system
dev_i.fops
 fops.open(),
 fops.unlocked_ioctl(),
 fops.poll(),
 fops.read,
 ...
...
----------------------      
system api          ------- libraries for ap
 file system api
...
----------------------
ap

 

mars

September 21, 2012