From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Mon, 01 Jul 2002 20:47:27 +0000 Subject: Re: communication between applications and hotplugd Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org > Is there a way an application can communicate directly with the hotplugd, > instead of just a bunch of scripts ? /sbin/hotplug is invoked by the kernel as the way it reports hotplug events ... there is no "hotplugd". What you could do is have /sbin/hotplug forward those events to some application using named pipes or sockets. That's been discussed as one of the mechanisms by which the X11 server, for one example, would learn about new input devices. Clearly it could work for any kind of hotplug event. As for notification about new /dev nodes (char/block major and minor) ... you might be able to make "devfsd" do it. Remember that there's no linkage within the kernel between the device ids it uses (c/b major/minor) and the filenames assigned to them in /dev, except for systems that use devfs. Until "driverfs" gets more functional (in 2.5) I suspect some of what you want is going to be difficult. - Dave ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ 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