Re: Load hid.o module synchronously?

Kevin P. Fleming
2004-05-01T16:43:50Z

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.