Something to start with ......
Google .. kernel driver keyboard ..
http://www.linuxjournal.com/article/1080
... = first hit : The Linux keyboard driver
http://www.google.com/search?hl=en&q...Search&aq=&oq=
Google .. linux driver keyboard ..
http://www.google.com/url?sa=t&sourc...I1rXkkJ0smBZ3A
"Writing device drivers in Linux: A brief tutorial"
http://www.google.com/search?hl=en&q...&aq=f&oq=&aqi=
... And by the way : The driver used in X isn't a kernel module.
.....
.....
Google .. linux driver mouse ..
http://www.google.com/search?hl=en&q...&aq=f&oq=&aqi=
http://www.google.com/url?sa=t&sourc...k0OzI5JZing20A
> > " mouse is an Xorg input driver for mice.
The driver supports most available mouse types.... "
http://www.google.com/url?sa=t&sourc...hgLiZ4J8S1V-Cg
> "Mice are conceptually one of the simplest device drivers in
the Linux operating system. Not all mice are handled by the kernel;
rather, there is a two-layer..."
.....