Re: Load hid.o module synchronously?

From: Patrick J. LoPresti
Date: Thu May 06 2004 - 09:12:15 EST


Oliver Neukum <oliver@xxxxxxxxxx> writes:

> The set of devices connected to the machine is not static. Waiting
> until all hardware is ready is very hard to even define.

It is very easy to define for 99.999% of all keyboards, which start
off connected and stay connected.

This should be simple. I want to load a driver at boot time and wait
until it either binds to something or fails to do so. If the user is
adding or removing hardware while the module is loading, I simply do
not care what the system does. But if the hardware is not changing, I
care a great deal... And the latter case is perfectly well-defined.

> > be glad to use any other mechanism to achieve the same effect; I just
> > have not seen one yet.
>
> Issue ioctl() USBDEVFS_CONNECT through usbfs. It does a synchronous
> probe for a specific device.

I suppose this would solve my USB keyboard problem. But a) it seems
very complex for such a simple need; and b) it does not work for
non-USB devices, which are also causing me grief.

- Pat
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/