From mboxrd@z Thu Jan 1 00:00:00 1970 From: iSteve Date: Tue, 26 Sep 2006 10:03:19 +0000 Subject: hotplug2 v0.8 -- added linux2.4 hotplug support Message-Id: <20060926120319.3d85ef0e@silver> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org 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 ev= ent into uevent format and writes it to netlink socket. Therefore, hotplug2-dno= de 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 wr= iting 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). --=20 -- 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=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ 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