Re: Load hid.o module synchronously?

From: Kevin P. Fleming
Date: Sat May 01 2004 - 11:44:45 EST


Patrick J. LoPresti wrote:

So there is no way to load this hardware driver and wait until it
either binds or fails to bind to its associated hardware? That seems
like a bad bug in the design...

You are wanting to load a driver for a completely-hotplug-capable subsystem but treat as if it was not? What will your package do if the user does not have the keyboard plugged in when the module gets loaded?

IMHO you should use the hotplug infrastructure and do this properly; load the module, and then sleep/wait until you get a hotplug event telling you that a keyboard has been found.
-
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/