kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Usb module loading
@ 2014-08-08  6:12 selva
  2014-08-08  6:14 ` Kristofer Hallin
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: selva @ 2014-08-08  6:12 UTC (permalink / raw)
  To: kernelnewbies

Hi All

I have written a usb module which will be linked if any keyboard
is hot plug.

I follow the step below to make it work

1) rmmod usbhid

2) insmod hello.ko

3) hot plug the keyboard

when the keyboard is hot plugged my kernel module gets loaded and in
syslog the messages regarding the detection of the keyboard are present.

My problem is i have to always remove "usbhid", if i donot that
then "usbhid" module is always linked with the keyboard.

How to make make sure that my module usb_kbd.ko gets linked to the keyboard
with out removing "usbhid" ?

My code is present in the following link

https://github.com/selvagit/little_penguin/blob/master/task_05/hello.c

The syslog is present in the following path

https://github.com/selvagit/little_penguin/blob/master/task_05/syslog

I had looked at udev rules, but what i have understood is we can set attributes
for the modules but we can not determine which kernel module should be
loaded for
any device.

Thanks,
Selvaraj

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-08-08 13:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-08  6:12 Usb module loading selva
2014-08-08  6:14 ` Kristofer Hallin
2014-08-08  6:43   ` Valdis.Kletnieks at vt.edu
2014-08-08  6:15 ` Sudip Mukherjee
2014-08-08  6:18 ` Varka Bhadram
2014-08-08  7:00   ` selva
2014-08-08 13:35     ` selva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).