From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Fri, 24 Jun 2005 10:23:54 +0000 Subject: Re: I'm lost: the udev workflow Message-Id: <20050624102354.GA21988@vrfy.org> List-Id: References: <200506240403.35408.ml@gioelebarabucci.com> In-Reply-To: <200506240403.35408.ml@gioelebarabucci.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Jun 24, 2005 at 04:03:35AM +0200, Gioele Barabucci wrote: > Now I'm lost. I'm no longer sure about the way udev, the kernel and other > device management apps work together. > > I was thinking that the workflow was: > > * something happens to a device (add, remove, power state change) > * the kernel calls /sbin/hotplug > * udev is called and does its work (modprobe, rmmod, device node > creation/deletion) > * all the "interested listeners" (like HAL) are called and are told of what > has changed. > > Now I read of netlink, listening daemons, KEYs... Can someone draft a quick > sketch of how kernel hotplug is going to work with the next udev releases? udevd already keeps track of the event management as it does today. The only difference is that it receives the kernel-events directly from a netlink-socket instead of letting the kernel fork a notification process that feeds udevd. This saves us one process per event, makes the event-ordering predictable and does not kill the box if thousends of events happen in parallel (we have such boxes here and you can't control the kernel forked events which are causing OOM in that case). Kay ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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