![]() | |||||||||||||
Messages in this thread |
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/ | ||||||||||||
| Last update: 2005-03-22 13:02 [W:0.151 / U:0.600 seconds] ©2003-2008 Jasper Spaans | |||||||||||||