From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Blin Date: Mon, 03 Oct 2005 10:29:03 +0000 Subject: Re: [RFC] coldplug - emit hotplug events from sysfs Message-Id: List-Id: References: <20051001124943.GA26076@vrfy.org> In-Reply-To: <20051001124943.GA26076@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Kay Sievers writes: > Here is another approach to address the coldplug problem. After playing > around with "udevsythesize" it felt stupid to try to compose all the events > from sysfs values which will never be exactly the same as the kernel > event. > This patch adds a "uevent" file to all class/block/bus-devices. Writing to > this file, will just emit the hotplug event from the kernel again. udevstart > and all the coldplug logic can be 3 lines of shell-script now. Boots fine > and is _very_ fast on my box. > > What do you think? It looks really nice, but will we still be able to differientate coldplug events in udev rules? For example, in Mandriva, we do PCI coldplug for USB controllers only, because we handle other stuff (sound, network, ...) later in services. We used to rely on UDEV_START in udev rules. -- Olivier Blin Mandriva ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ 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