資源簡介
Linux驅動程序開發實例里面的東東還是不錯的,值得參考。

代碼片段和文件信息
int?version;
ioctl(fd?EVIOCGVERSION?&version);//獲取版本
struct?input_devinfo?device_info;
ioctl(fd?EVIOCGID?&device_info);//獲取設備信息
char?name[256]=?“Unknown“;
ioctl(fd?EVIOCGNAME(sizeof(name))?name)//獲取名稱
uint8_t?rel_bitmask[REL_MAX/8?+?1];
ioctl(fd?EVIOCGBIT(EV_REL?sizeof(rel_bitmask))//獲取支持的鼠標特性
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????......R???????336??2010-10-28?21:51??src\11input\11-1ioctl\ioctl.c
????......R???????300??2010-04-14?21:59??src\11input\11-2Button\button\.button.ko.cmd
????......R?????13972??2010-04-14?21:59??src\11input\11-2Button\button\.button.mod.o.cmd
????......R?????25317??2010-04-14?21:59??src\11input\11-2Button\button\.button.o.cmd
????......R???????115??2010-04-14?21:59??src\11input\11-2Button\button\.tmp_versions\button.mod
????......R??????6341??2010-04-14?21:59??src\11input\11-2Button\button\button.c
????......R?????92183??2010-04-14?21:59??src\11input\11-2Button\button\button.ko
????......R???????444??2010-04-14?21:59??src\11input\11-2Button\button\button.mod.c
????......R?????12876??2010-04-14?21:59??src\11input\11-2Button\button\button.mod.o
????......R?????80484??2010-04-14?21:59??src\11input\11-2Button\button\button.o
????......R??????1196??2010-04-12?22:35??src\11input\11-2Button\button\demo.h
????......R?????????0??2009-09-09?14:16??src\11input\11-2Button\button\Module.symvers
????......R????????65??2010-04-14?21:59??src\11input\11-2Button\button\modules.order
????......R??????9558??2010-04-14?22:03??src\11input\11-2Button\test\demotest
????......R???????918??2010-11-20?09:11??src\11input\11-2Button\test\test.c
????......R???????276??2010-04-14?21:48??src\11input\11-3beep\demo\.demo.ko.cmd
????......R?????13914??2010-04-14?21:48??src\11input\11-3beep\demo\.demo.mod.o.cmd
????......R?????19604??2010-04-14?21:48??src\11input\11-3beep\demo\.demo.o.cmd
????......R???????103??2010-04-14?21:48??src\11input\11-3beep\demo\.tmp_versions\demo.mod
????......R??????3147??2010-04-14?21:48??src\11input\11-3beep\demo\demo.c
????......R?????83603??2010-04-14?21:48??src\11input\11-3beep\demo\demo.ko
????......R???????444??2010-04-14?21:48??src\11input\11-3beep\demo\demo.mod.c
????......R?????12872??2010-04-14?21:48??src\11input\11-3beep\demo\demo.mod.o
????......R?????71784??2010-04-14?21:48??src\11input\11-3beep\demo\demo.o
????......R?????????0??2009-06-13?14:10??src\11input\11-3beep\demo\Module.symvers
????......R????????59??2010-04-14?21:48??src\11input\11-3beep\demo\modules.order
????......R??????9390??2010-04-14?21:50??src\11input\11-3beep\test\demotest
????......R???????929??2010-11-20?09:10??src\11input\11-3beep\test\test.c
????......R??????2232??2010-09-07?12:05??src\13alsa\13-1alsaplay\play.c
????......R?????10703??2009-07-11?12:46??src\13alsa\13-2alsarecord\record
............此處省略555個文件信息
- 上一篇:proteus 第三方仿真元器件庫 1
- 下一篇:FS4412文件系統鏡像文件
評論
共有 條評論