From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 10 Mar 2004 22:37:01 +0000 Subject: Re: udev and dbus Message-Id: <1078958221.2582.5.camel@pim> List-Id: References: <20040217214449.GB12411@wonderland.linux.it> In-Reply-To: <20040217214449.GB12411@wonderland.linux.it> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, 2004-03-10 at 19:49, David Zeuthen wrote: > On Wed, Mar 10, 2004 at 06:52:59PM +0100, Kay Sievers wrote: > > > 1. Remove dbus support from udev and make udev call /sbin/hotplug with > > > a single positional parameter, 'udev', and the environment variables > > > DEVPATH pointing to the appropriate directory in sysfs, ACTION > > > assuming 'add' respectively 'remove' and DEVICE_FILE pointing to > > > the created / removed special device file. > > > > How will you know what file is created? > > > > udev forks, creates a minimal environment, sets ACTION, DEVPATH and > DEVICE_FILE (surely udev will know what to put in DEVICE_FILE since > it created / removed the file, yes?) and then exec's /sbin/hotplug > (or whatever the /proc/... file designates as the hotplug helper) > with a single parameter udev. This sounds like a nice loop :) Kay ------------------------------------------------------- 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_id70&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