keyboard按键中断驱动

时间:2020-11-18 13:40:18
【文件属性】:

文件名称:keyboard按键中断驱动

文件大小:116KB

文件格式:RAR

更新时间:2020-11-18 13:40:18

Linux,中断

########## # README # ########## Purpose ------- To help understand which is the most commonly 'pressed' and 'released' key in the keyboard. Holding a key down will generate 'pressed' events more so, count of pressing need not be equal to release count. (This code works only for ps/2 keyboards, not usb which generates interrupt in different IRQ line.) How To Use ---------- Please don't proceed if you see any error in the below steps. 0. 0rth Law (as in thermodynamics) cat LICENSE 1. compile a. create the header files $ make header ( sometimes the above may not work, as it won't be able to get file descriptor. please run as sudo $ sudo make header ) b. compile the source $ make 2. Insert the module into kernel and setup the system $ keyboard_stats_load 3. Read the statistics $ cat /dev/keyboard_stats 4. Remove the module and system $ keyboard_stats_unload 5. Cleaning the dir $ make clean DEBUGGING --------- Mail the author or read /var/log/messages and try your luck by setting the scancodes etc. Misc ---- I wrote this code because few of my keys are more shiny than others and i had to find out why!! :-) Bugs ---- In my MAC VM, some keys were not working, like arrow keys! Author ------ Vigith Maurice (www.vigith.com)


【文件预览】:
keyboard
----keyboardInt.c(8KB)
----keyboardInt.h(542B)
----.keyboardInt.mod.o.cmd(28KB)
----.keyboardInt.o.cmd(33KB)
----.keyboardInt.ko.cmd(272B)
----keyboard_mapping.h(4KB)
----keyboardInt.mod.c(2KB)
----.tmp_versions()
--------keyboardInt.mod(79B)
----keyboardInt.o(128KB)
----keyboardInt.ko(176KB)
----LICENSE(727B)
----keyboard_stats_load(658B)
----Makefile(959B)
----keyboardInt.mod.o(52KB)
----modules.order(47B)
----keyboard_stats_unload(181B)
----README(1KB)
----Module.symvers(0B)

网友评论