From: Bob Barry Date: Wed, 10 Mar 2004 10:56:48 +0000 Subject: Lazy Module Loading Message-Id: <200403101300.19866.bobb@absamail.co.za> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tuesday 09 March 2004, Rihad and Greg KH wrote: > > >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? > > Yup, why not? > > > 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? > > > 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 Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel