From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Mansfield Date: Wed, 10 Mar 2004 22:25:27 +0000 Subject: Re: udev and dbus Message-Id: <20040310142527.A23688@beaverton.ibm.com> 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, Mar 10, 2004 at 11:18:06AM -0800, Greg KH wrote: > On Wed, Mar 10, 2004 at 05:31:09PM +0100, David Zeuthen 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. > > > > This way, applications, like HAL, interested in the event can simply > > install a small program in /etc/hotplug.d/[udev,default] to do > > whatever they want with the event, like sending it to a daemon > > possibly through what may be the IPC-flavour of the month :-) > > > > (yes, this might be abusing the hotplug multiplexor) > > Yes, that is abusing the hotplug multiplexor. I don't like it :) I like it. Why does the kernel get to abuse it but not user space ;-) Then dbus or anyone can create an agent. And those wanting to automatically mount devices, start applications, or setup dm have a nice place to put their scripts. In a initrd/initramfs, you could even mount and start init based on the root device showing up. We should have a simple "your /dev/foo has arrived" interface. -- Patrick Mansfield ------------------------------------------------------- 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