* note that since atkbd->enabled is false event work will keep * rescheduling itself until it gets canceled and will not try * accessing freed input device or serio port */ cancel_delayed_work_sync (& atkbd-> event_work); serio_close ; serio_set_drvdata (serio, null); kfree ;} /* * generate release events for the keycodes given in data. Linux usb keyboard driver source code. The keyboard driver itself mostly just gets activated when the user presses a key, gets the data, and goes back to sleep if you're interested in something like mapping keys to different characters, that's not in the keyboard driver itself at all (without even looking at any code for the driver itself).
linux usb keyboard driver source code
+5 this is a much better answer than i expected anyone to be able to give on this matter the wording of the question gave me the impression that the op thought the source code for the driver would be available within the os and i got hung up on that thought. The linux hid-input driver and related vendor and device-specific hid drivers are responsible for parsing hid reports and mapping hid usages to linux key codes. as android reads ev_key events from the linux kernel, it translates each linux key code into its corresponding android key code according to the key layout file of the device.. To do this first i need to remove existing driver and i'm not able to find the location of kernel's keyboard driver in linux .. if anyone knows the location of keyboard driver then plz rply last edited by archanac07; 01-28-2010 at 05:49 am ..
get link reference