From: "Alexander E. Patrakov" <patrakov@ums.usu.ru>
To: linux-hotplug@vger.kernel.org
Subject: Re: Non-hardware devices like loop: another idea
Date: Thu, 18 Mar 2004 03:56:01 +0000 [thread overview]
Message-ID: <200403180856.01696.patrakov@ums.usu.ru> (raw)
In-Reply-To: <200403122003.00557.patrakov@ums.usu.ru>
On Wednesday 17 March 2004 22:01, Mike Snitzer wrote:
> Alexander E. Patrakov wrote:
> > I don't propose to parse these files at all. I want to probe the modules
> > corresponding to the *-major-* aliases unconditionally.
> I wasn't suggesting anything; merely pointed out that your solution was
> dependent on modules. Ultimately udev will create /dev entries as it
> walks sysfs (so it takes care of /dev/loopX, etc); but there are aspects
> of the kernel that aren't sysfs-ified (e.g. tun). Not to mention if the
> devices don't support hotplug udev will never get triggered.
We are talking about different problems here. I am talking about the fact that
the FAQ says:
Q: But wait, I really want udev to automatically load drivers when they
are not present but the device node is opened. It's the only reason I
like using devfs. Please make udev do this.
A: No. udev is for managing /dev, not loading kernel drivers.
Q: Oh come on, pretty please. It can't be that hard to do.
A: Such a functionality isn't needed on a properly configured system. All
devices present on the system should generate hotplug events, loading
the appropriate driver, and udev will notice and create the
appropriate device node.
I just propose a way of achieving the presence of some devices in /dev when
the corresponding modules can't support PCI/USB/whatever hardware hotplug
events at all (is loop a PCI device?). I _assume_ that sysfs is supported
properly.
> So wouldn't a better option be to make the various devices that don't
> support hotplug and/or sysfs support them? Then udev just needs some new
> rules. Infering information from the module load (via modules.alias) is
> fragile.
The loop module supports sysfs, and generated hotplug events when inserted or
removed. The problem is that you cannot make the current hotplug scripts
insert this module at hardware detection phase. If you know something
different, please tell us how (based on what information) would you make
devices such as loop, lp, ppdev (note that they properly support sysfs, but
can't be detected as hardware) present in /dev? The only other solution
mentioned here was to keep a big tarball of such undetectable devices and
untar it every boot.
My approach is better because it also works without modification if I patch my
kernel and add the pktcdvd module. I will not have to add the pktcdvd devices
to that tarball.
--
Alexander E. Patrakov
-------------------------------------------------------
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_id\x1470&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
next prev parent reply other threads:[~2004-03-18 3:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-12 15:03 Non-hardware devices like loop: another idea Alexander E. Patrakov
2004-03-17 1:47 ` Mike Snitzer
2004-03-17 4:13 ` Alexander E. Patrakov
2004-03-17 4:26 ` Mike Snitzer
2004-03-17 6:39 ` Alexander E. Patrakov
2004-03-17 17:01 ` Mike Snitzer
2004-03-18 3:56 ` Alexander E. Patrakov [this message]
2004-03-18 4:24 ` Greg KH
2004-03-18 4:55 ` Mike Snitzer
2004-03-18 9:55 ` Alexander E. Patrakov
2004-03-18 9:58 ` Alexander E. Patrakov
2004-03-18 10:23 ` Marco d'Itri
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=200403180856.01696.patrakov@ums.usu.ru \
--to=patrakov@ums.usu.ru \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).