lkml.org 
[lkml]   [2003]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Input layer demand loading
On Wed, Jul 16, 2003 at 02:57:42PM +0200, Fredrik Tolf wrote:
> On Wednesday 16 July 2003 06.29, Greg KH wrote:
> > On Mon, Jul 14, 2003 at 12:58:24PM +0200, Fredrik Tolf wrote:
> > > On Monday 14 July 2003 08.22, Greg KH wrote:
> > > > On Sun, Jul 13, 2003 at 06:39:49PM +0200, Fredrik Tolf wrote:
> > > > > Why does the input layer still not have on-demand module loading? How
> > > > > about applying this?
> > > >
> > > > What's wrong with the current hotplug interface for the input layer?
> > > > If you want to implement this, add some input hotplug scripts to the
> > > > linux-hotplug package.
> > >
> > > Correct me if I'm wrong, but AFAIK that can only be smoothly used to load
> > > hardware driver modules.
> >
> > In a way, yes.
> >
> > > If the input layer userspace interface code has been compiled as modules,
> > > and you have a ordinary (not hotplug) device, eg. a gameport joystick,
> > > can really the hotplug interface be used to load joydev.o when
> > > /dev/input/js0 is opened?
> >
> > No, you want to load the joydev.o driver when you plug in the gameport
> > joystick. Which will be before you open the /dev node.
>
> Not necessarily. When the joystick is plugged in, you want to load the
> hardware driver modules. There's really no need for the userspace interface
> until someone requests it. At least that's the way I see it.
> And in any case, even if you do want to load joydev.o when the joystick is
> plugged in, I don't see how that could be done on-demand when the joystick
> port isn't hotplug compatible, such as is the case with gameports, right?

True, but then if you try to open the port, you will only get the base
joydev.o module loaded, not the gameport driver, which is what you
_really_ want to have loaded, right?

So there really isn't much benifit to doing this, sorry.

greg k-h
-
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 13:46    [from the cache]
©2003-2011 Jasper Spaans