Am Dienstag, 4. November 2008 23:57:02 schrieb Jiri Slaby: > On 11/04/2008 11:51 PM, Oliver Neukum wrote: > > If you call usb_register_dev() before you set > > hiddev_table[usbhid->intf->minor - HIDDEV_MINOR_BASE] > > this check in hiddev_open() may fail: > > if (i >= HIDDEV_MINORS || i < 0 || !hiddev_table[i]) > > return -ENODEV; > > I think, that's the point. You should also get ENODEV if you don't call > usb_register_dev(), create a node for non-existent minor manually and try to > open it. It behaves the same as if there was a lock you suggested... But by calling usb_register_dev() we also cause the kernel to emit a hotplug event that tells udev that the device exists. Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html