hotplug2 v0.8 -- added linux2.4 hotplug support
Greetings,
I'd like to announce a major upgrade in Hotplug2, version 0.8.
The significance of this release lies in added support for Linux 2.4 kernel (and older 2.6 kernel) hotplug system.
The system of support of Linux 2.4 hotplug is following:
User uses generate_alias to create modalias for every module available, out of modules.[bus]map (eg. modules.pcimap, modules.isapnpmap etc.) into /lib/modules/uname -r/modules.alias.
/proc/sys/kernel/hotplug calls hotplug2-dnode, which crafts possibly missing MODALIAS out of given information (and also sets SEQNUM), transforms the event into uevent format and writes it to netlink socket. Therefore, hotplug2-dnode basically converts old style hotplug events into uevents.
hotplug2 receives the uevent (and it doesn't care if it is an event from the hotplug2-dnode or from kernel, because it can't really tell) and processes it as usually.
In dumb mode, hotplug2 (during startup) checks whether the /sbin/modprobe binary is of module-init-tools, and if it is not, it uses /sbin/hotplug2-modwrap instead (which simply matches given alias to /lib/modules/uname -r/modules.alias and executes /sbin/modprobe for each match, since modutils use strcmp for alias matching, while module-init-tools and hotplug2-modwrap use the desired fnmatch).
To perform coldplugging, hotplug2-coldplug-2.4 looks at information exported through /proc/bus and, again, computes MODALIAS and invokes the event by writing to the netlink socket. Currently, pci, usb and isapnp are supported.
Most of this is documented (including frequently asked questions) in here:
http://isteve.depressant.org/hotplug2/Linux24_interface.html
Homepage of the project:
http://isteve.depressant.org/hotplug2/
Thanks in advance for any comments whatsoever.
PS: I've looked at Busybox mdev; hotplug2 is way, way ahead (and taking a different path, too).
Signature · 11 lines
-- iSteve ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel