Linux Hotplug development
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: initramfs: udev, hotplug, klibc and modprobe
Date: Thu, 13 Jan 2005 01:08:58 +0000	[thread overview]
Message-ID: <1105578538.9061.16.camel@localhost.localdomain> (raw)
In-Reply-To: <1105307950.9630.49.camel@juerg-p4.bitron.ch>

On Wed, 2005-01-12 at 09:24 +0100, Jürg Billeter wrote: 
> On Mit, 2005-01-12 at 03:37 +0100, Kay Sievers wrote:
> > On Sun, 2005-01-09 at 23:25 +0100, Juerg Billeter wrote:
> > >               * [3] Patch to add udevinitd and udevinitsend. These are
> > >                 modified versions of udevd and udevsend acting as a
> > >                 "caching daemon". They save events received during early
> > >                 userspace and resend them to late userspace udevd when
> > >                 ready. This enables late userspace to process all events
> > >                 (for example to load modules not included in initramfs)
> > >                 without using coldplugging and thelike. (udevinitsend
> > >                 gets called via hotplug.d)
> > 
> > Nice idea. In a recent discussion, the question came up about a possible
> > combination of udevstart and coldplugging. It may be possible to
> > synthesize all the events from the information in sysfs? What do you
> > think about that in relation to your udevd "event queue".
> 
> If really all events could be synthesized including the order/seqnum and
> one sets udevd's event queue on hold (to avoid race conditions between
> newly generated events and not yet "read" events) this probably works
> well. As there is no point in time a process can determine when there
> are no further incoming hotplug events, so it knows it is safe to start
> reconstruction / replay, there may still be race conditions, not sure.
> 
> My solution may be easier to implement / use when regarding possible
> race conditions but it possibly has drawbacks, too, I don't know.

On Wed, 2005-01-12 at 10:42 +0100, Harald Hoyer wrote:
I really would like to see the hotplay replay since September :) 
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id\x133841#c6

Ok, sounds reasonable to reply the events as a replacement to faking the
hotplug events for coldplugging and running udevstart.

How does the transition from udevinitd to the real udevd look like on
your box, Jürg? How are "real" events handled, traveling in during the
transition?
Maybe udevd should be started from initramfs and never be replaced by a
different one? We may just add a knob to the "real" udevd to hold the
event execution back until userspace asks to flush the queue and udevd
switches over to the current behavior.

Thanks,
Kay




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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

  parent reply	other threads:[~2005-01-13  1:08 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-09 21:59 initramfs: udev, hotplug, klibc and modprobe Jürg Billeter
2005-01-09 22:25 ` Juerg Billeter
2005-01-12  2:37 ` Kay Sievers
2005-01-12  5:07 ` Alexander E. Patrakov
2005-01-12  7:58 ` Jürg Billeter
2005-01-12  8:24 ` Jürg Billeter
2005-01-12  9:42 ` Harald Hoyer
2005-01-12  9:59 ` Alexander E. Patrakov
2005-01-13  1:08 ` Kay Sievers [this message]
2005-01-13  3:50 ` Alexander E. Patrakov
2005-01-13 12:55 ` Kay Sievers
2005-01-13 14:34 ` Juerg Billeter
2005-01-13 15:21 ` Kay Sievers
2005-01-13 16:16 ` Juerg Billeter
2005-01-14  9:29 ` Hannes Reinecke
2005-01-14 10:04 ` Kay Sievers
2005-01-14 10:27 ` Hannes Reinecke
2005-01-14 10:36 ` Kay Sievers

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=1105578538.9061.16.camel@localhost.localdomain \
    --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