lkml.org 
[lkml]   [2004]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Load hid.o module synchronously?
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@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 14:02    [W:0.446 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site