Re: Input layer demand loading

Oliver Neukum
2003-07-16T18:19:28Z

Am Mittwoch, 16. Juli 2003 20:19 schrieb Andrey Borzenkov:
> >> 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.
> >
> > Why? It could work the way PCMCIA SCSI works.
> > Cardmgr loads the LLDD, but sd, sg, etc. are loaded
> > on demand.
>
> how? SCSI (or USB, PCI, EISA etc) have driver-independent means to identify
> device or at least device class.
>
> But how are you going you going to know you need to load specific mouse driver
> (logitech not microsoft) or specific joystick flavour? All that you possibly
> know that you have _some_ mouse or _some_ joystick ...

Exactly, you'd only load the hardware independent part on demand.
Or, alternatively, you'd record the driver to load in the hotplug script
and load it on demand.

Regards
Oliver