From mboxrd@z Thu Jan 1 00:00:00 1970 From: iSteve Date: Sat, 02 Sep 2006 14:30:17 +0000 Subject: New software: Hotplug2, aimed at early userspace Message-Id: <20060902163017.693cd988@silver> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Greetings, I'd like to present my new application, Hotplug2. Hotplug2 is aimed at early Linux user space, that is, initramfs or initrd, possibly also at embedded devices (such as WRT-like routers) or very weak machines, such as 386/486 (some still use them as workstations). Hotplug2 connects to the uevent netlink socket and read events. The application generally operates in two modes, dumb and smart. In dumb mode, when event arrives, we generally only check if it has MODALIAS set; if yes, we spawn modprobe and carry on. In smart mode, simple form of rules are applied. Those rules allow matching of the variables obtained by the uevent socket and allows execution of applications, with those variables set as their environmental variables. Further documentation of rules syntax is available at the homepage of the project. Hotplug2 supports cold plugging simply by calling the 'udevtrigger' binary internally. As udevtrigger is fairly independent on the rest of udev, it can be easily embedded along with Hotplug2. Given that Hotplug2 is in it's infancy, this can be considered a minor detail and replaced some time later. When compiled to support smart mode, Hotplug2 v0.2 has only 14 156 bytes on my machine (x86, dynamically linked with glibc, gcc 4.1.2) with no optimisation flags for GCC and 10 768 bytes with -Os. The advantages over udev are, as I believe: * Faster (way faster!) processing of events, because far less actions are performed. * The size is (obviously) also way smaller, which is a generic advantage;) The disadvantages would be: * Far less actions are performed and far less actions _can_ be performed. For anything more complex, including creating relevant symlinks, one must have another application or script handling that. Therefore, as said earlier, Hotplug2 definitely is not aimed as replacement for udev on desktop, with the exception of initramfs / initrd. URL of the project is: http://isteve.depressant.org/hotplug2/ I'd welcome any patches, comments or thoughts whatsoever. -- -- iSteve ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ 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