Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

kernel usb module

15 views
Skip to first unread message

Ivan Ivanivich

unread,
Apr 9, 2014, 6:09:08 AM4/9/14
to
hi all, I have some task:

I want to write a kernel module that can work with any usb keyboard, my first task is to write a kernel module that can make pr_info("hello world"), when I connect the keyboard and can make pr_info("bye-bye"), when I unplug the keyboard. Module should do it for any usb keyboard, but should not do it for any other usb devices.

I do not want you to write for me this module, just advise me manuals about how to connect usb device in the kernel, how the kernel generates udev events, and if not difficult: what minimum set of structures and functions I need to use.

thank you very much.

p.s. sorry for my english
0 new messages