From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Sat, 25 Oct 2003 00:42:34 +0000 Subject: Re: On demand modules loading with {tmp,ram}fs and udev Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sat, Oct 25, 2003 at 02:00:18AM +0200, Tomasz Torcz wrote: > Hi, > > I was thinking about small addition to tmpfs. When mounted with 'dev' > option, any lookup of non existing file should result in calling > modprobe with filename as argument. > When coupled with mount tmpfs over /dev (or /udev) this functionality > would allow on-demand module loading (as with devfs and plain old > device nodes). How will you do the mapping of /dev names to modules in kernel space? How are you going to know which of the 50 or so sound drivers to load when opening /dev/dsp? And what's wrong with the current scheme of, "load a driver when the device is seen"? This is how Linux currently works, and has been moving to for quite some time. In the past we didn't have that capability, so the "load the driver when we open the /dev node" hack was added. Remember, the current size of most /dev trees is about 18 thousand entries and growing... thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ 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