Lazy Module Loading
Quoted 7 lines · Rihad and Greg KH
Quoted 6 lines
Quoted 3 lines
Users need to learn that the kernel is changing models from one which automatically loaded modules when userspace tried to access the device, to one where the proper modules are loaded when the hardware is found.
Does this mean that I will have modules for all my hardware hanging around even if I'm not, say, using cdrom at the moment?
Quoted 10 lines
Yup, why not?
Quoted 2 lines
And does it mean that if I rmmod -a the unused cdrom module and later try to mount /cdrom, the correct module won't be magically insmod'ed?
If you don't have the /dev entry there, how would anything know to load the module?
Quoted 2 lines
I like the idea of lazy module loading, and it seems that your model doesn't fit in nicely, I could be wrong.
For Rihad and all the others that pursue devfs-ish operation: the "install" option of modprobe.conf can do anything you devise, along with module installation. If you make a script to set up the environment and run udev, you can arrange that the script is called with appropriate arguments before the module is installed. Modprobe.conf also has a "remove" option which could execute your chosen action along with removal of the module. If you create something useful with this (or other) approach, post it to the list because devfs-oriented users are always asking for it. But I think you will find that it quickly leads to an ugly and cumbersome modprobe.conf.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel