From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 13 Jan 2004 01:29:51 +0000 Subject: Re: about split the udev Message-Id: <20040113012951.GC5204@kroah.com> List-Id: References: <3ACA40606221794F80A5670F0AF15F8402D4EE96@PDSMSX403.ccr.corp.intel.com> In-Reply-To: <3ACA40606221794F80A5670F0AF15F8402D4EE96@PDSMSX403.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Jan 12, 2004 at 10:36:06AM +0100, Martin Waitz wrote: > hi :) > > On Mon, Jan 12, 2004 at 03:53:01PM +0800, Ling, Xiaofeng wrote: > > In the TODO, there is an item "split program into two pieces", > > If no one is working on it, I'd like to try for it. > > What do you think is better to communicate between the two pieces? > > Unix socket, named pipe or share memory? > > HAL already has a small program that sends a d-bus message for > every hotplug event. No, DBUS is too heavy for what udev needs to do, sorry. I am talking about udev splitting into 2 pieces: udev - called the same way udev is called today. creates a tiny message queue message based on the hotplug event and then exits. This can probably be done in under 6Kb of binary code. udevd - receives the udev message queue messages. Orders them in the proper order (based on the SEQ_NUM from the hotplug event), and then acts on them. Size should be about what we have today for the udev binary 50Kb or so. We need to do this in order to properly handle out of order hotplug events. It will also help out your DBUS issue with udev messages :) Hope this helps, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ 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