Messages in this thread | | | Date | Mon, 26 Apr 2004 13:19:43 -0700 | From | Greg KH <> | Subject | Re: Load hid.o module synchronously? |
| |
On Mon, Apr 26, 2004 at 03:50:52PM -0400, Patrick J. LoPresti wrote: > > I see how I can scan for a USB keyboard after loading the USB host > controller module. I think. But what do I look for, exactly, to tell > when hid.o has hooked itself up to the keyboard?
I can think of at least 2 different ways (there are probably more): - look at the device in /proc/bus/usb/devices and wait until the driver is bound to that device "(hid)" will show up as the driver bound to that interface - look at the sysfs directory for the hid driver and wait for the symlink to the device shows up. This should be at /sys/bus/usb/drivers/hid
Hope this helps,
greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |