Re: psmouse et al and mousedev dependancy

From: Dmitry Torokhov
Date: Wed Mar 16 2005 - 12:38:54 EST


Hi,

On Wed, 16 Mar 2005 19:51:59 +0300, Michael Tokarev <mjt@xxxxxxxxxx> wrote:
> A quick (hopefully) question.
>
> When mousedev is compiled as a module, loading psmouse or usbhid
> modules does not enable the mouse, one have to load mousedev too.
> The same is true for keybdev and actual keyboard drivers.
>
> Why not add this dependancy explicitly in psmouse et al modules,
> something like (pseudocode):
>
> #if CONFIG_MOUSEDEV==m
> request_module(mousedev);
> #endif
>
> , or, to "use" some symbol in psmouse.ko which is defined in mousedev?
>

Not everyone uses mousedev (evdev, tsdev, joydev) so they are not
loaded by default. It is actually hotplug scripts' task to load proper
interface module after a new input device has been discovered.

--
Dmitry
-
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/