• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..02-May-201723

generate_alias.8H A D01-Feb-2012868

hotplug2-coldplug-2.4.8H A D01-Feb-2012490

hotplug2-dnode.8H A D01-Feb-2012644

hotplug2-modwrap.8H A D01-Feb-2012942

hotplug2.8H A D01-Feb-20122.2 KiB

hotplug2.rules.docH A D01-Feb-20123.9 KiB

Linux24_interfaceH A D01-Feb-20122.5 KiB

Linux26_interfaceH A D01-Feb-2012921

MakefileH A D01-Feb-2012138

READMEH A D01-Feb-20121.7 KiB

UsageH A D01-Feb-20122.7 KiB

README

1
2  Introduction
3
4The following readme are cuts from the linux-hotplug-devel mailing list announcement.
5http://marc.theaimsgroup.com/?l=linux-hotplug-devel&m=115720744227751&w=2
6
7--
8Hotplug2 is aimed at early Linux user space, that is, initramfs or initrd,
9possibly also at embedded devices (such as WRT-like routers) or very weak
10machines, such as 386/486 (some still use them as workstations).
11
12Hotplug2 connects to the uevent netlink socket and read events. The
13application generally operates in two modes, dumb and smart.
14
15In dumb mode, when event arrives, we generally only check if it has MODALIAS
16set; if yes, we spawn modprobe and carry on.
17
18In smart mode, simple form of rules are applied. Those rules allow matching of
19the variables obtained by the uevent socket and allows execution of
20applications, with those variables set as their environmental variables.
21Further documentation of rules syntax is available at the homepage of the
22project.
23
24Hotplug2 supports cold plugging simply by calling the 'udevtrigger' binary
25internally. As udevtrigger is fairly independent on the rest of udev, it can be
26easily embedded along with Hotplug2. Given that Hotplug2 is in it's infancy,
27this can be considered a minor detail and replaced some time later.
28
29The advantages over udev are, as I believe:
30 * Faster (way faster!) processing of events, because far less actions are
31performed. 
32 * The size is (obviously) also way smaller, which is a generic advantage;)
33
34The disadvantages would be:
35 * Far less actions are performed and far less actions _can_ be performed.
36 
37Therefore, as said earlier, Hotplug2 definitely is not aimed as replacement
38for udev on desktop, with the exception of initramfs / initrd.
39---
40
41To enable debugging, compile with -DDEBUG.
42