From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: On demand modules loading with {tmp,ram}fs and udev
Date: Tue, 28 Oct 2003 18:31:17 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-106736702810435@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-106704029925575@msgid-missing>
On Sat, Oct 25, 2003 at 03:09:32AM +0200, Tomasz Torcz wrote:
> On Fri, Oct 24, 2003 at 05:42:34PM -0700, Greg KH wrote:
> > 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?
>
> Just call modprobe. Modprobe will check /etc/modprobe.conf for dsp
> aliases and load module. Then udev will make devnode.
Ok, that sounds reasonable. Looking forward to your ramfs
implementation that does this :)
> I'm also surprised that"load the driver when we open the /dev node"
> is a hack. I get used to this standard Linux functionality as
> something obvious. Other OSed (*BSD, Solaris etc.) don't work like
> that?
I do not know what other oses do in this regard, sorry.
greg k-h
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! 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
prev parent reply other threads:[~2003-10-28 18:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-25 0:00 On demand modules loading with {tmp,ram}fs and udev Tomasz Torcz
2003-10-25 0:42 ` Greg KH
2003-10-25 1:09 ` Tomasz Torcz
2003-10-28 18:31 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-106736702810435@msgid-missing \
--to=greg@kroah.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.