linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* New software: Hotplug2, aimed at early userspace
@ 2006-09-02 14:30 iSteve
  2006-09-03 10:16 ` iSteve
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: iSteve @ 2006-09-02 14:30 UTC (permalink / raw)
  To: linux-hotplug

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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-09-08 17:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-02 14:30 New software: Hotplug2, aimed at early userspace iSteve
2006-09-03 10:16 ` iSteve
2006-09-04  1:04 ` Aras Vaichas
2006-09-04  6:20 ` iSteve
2006-09-04  7:48 ` iSteve
2006-09-06  1:27 ` Greg KH
2006-09-08 14:00 ` iSteve
2006-09-08 15:22 ` Kay Sievers
2006-09-08 17:17 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).