From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: waiting for an unknown set of udev /dev entries to complete
Date: Tue, 29 Nov 2005 10:44:22 +0000 [thread overview]
Message-ID: <20051129104422.GB7534@vrfy.org> (raw)
In-Reply-To: <20051118223045.GA28401@us.ibm.com>
On Mon, Nov 28, 2005 at 11:09:55PM +0100, Pozsar Balazs wrote:
> > All events will be forked in order of arrival, not random. Events
> > for the same devpath will be serialized, one runs after the other.
> >
> > Udevd throttles forking of childs and limits the running processes.
> > Later events will wait for execution, if there are already to many
> > in running state. If the event carries TIMEOUT, the event will run
> > immedediately, without queuing.
> >
> > Events will not be forked, if a parent of the devpath is already
> > running, or the physical device event backing the device is still
> > running. Physical device chains in /sys/devices are all serialized
> > by it's devpath and run one after the other.
> >
> > Another example, partition events will wait for the main block device
> > event to finish, so the partition can import the parents information
> > stored in the udev database. Therefore, the events for the main
> > devices will need to be triggered _before_ the partition devices and
> > udevd will take care of the right execution sequence.
> >
> > For some events, special rules are needed, cause you want to setup all
> > block devices, before you setup a raid, and a lot of other crazy things
> > like this, especially for the not-so-common architectures and setups.
>
>
> What I still do not understand is: why do you want to emit the class/mem
> and class/tty events first, and the block/md events last?
The md devices want all other block devices around before they are
set-up. The tty's are needed very early for all sort of tools, mem
like /dev/zero, /dev/mem, may be needed very eearly too.
The required tty and mem devices are usually part of the static setup,
copied to or created in /dev as the first action, so it may not be
needed. It's a left-over from udevstart, which started on a completely
empty /dev and wanted it around first, to be able to run tools for
other devices.
Kay
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id\x16865&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
prev parent reply other threads:[~2005-11-29 10:44 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-18 22:30 waiting for an unknown set of udev /dev entries to complete Patrick Mansfield
2005-11-20 6:03 ` Kay Sievers
2005-11-20 17:25 ` Patrick Mansfield
2005-11-20 18:23 ` Kay Sievers
2005-11-20 20:10 ` Pozsar Balazs
2005-11-20 20:23 ` Marco d'Itri
2005-11-20 23:32 ` Kay Sievers
2005-11-20 23:53 ` Kay Sievers
2005-11-21 0:01 ` Marco d'Itri
2005-11-22 23:13 ` Kay Sievers
2005-11-23 8:26 ` Scott James Remnant
2005-11-23 10:54 ` Pozsar Balazs
2005-11-23 16:27 ` Harald Hoyer
2005-11-23 16:50 ` Kay Sievers
2005-11-23 17:25 ` Pozsar Balazs
2005-11-23 17:46 ` Kay Sievers
2005-11-23 18:16 ` Pozsar Balazs
2005-11-23 18:39 ` Kay Sievers
2005-11-23 21:33 ` Patrick Mansfield
2005-11-28 22:09 ` Pozsar Balazs
2005-11-29 10:44 ` Kay Sievers [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=20051129104422.GB7534@vrfy.org \
--to=kay.sievers@vrfy.org \
--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).