mdev
Denys Vlasenko
vda.linux at googlemail.com
Fri Apr 17 00:04:22 UTC 2009
On Thursday 16 April 2009 21:32, Vladimir Dronnikov wrote:
> To all, all, all :)
>
> Attached is a cumulated patch against the current SVN mdev.
> * fixed coldplug $SUBSYSTEM handling;
> * added ability to load device supporting modules on hotplug events:
> e.g. are PNP devices (speaker, serial ports, ...), network interfaces,
> and so on;
> * intuitive syntax for subsystem matching is used for mdev.conf: regex
> (the 1st field) is of format [<subsystem>/]<device_name>.
Sorry, does not apply since I applied some of your earlier patches.
> I attached my mdev.conf for testing purposes. It will be nice if users
> merge/edit/send-it-back so we can compile the example mdev.conf.
I added large comment in mdev.c
Maybe it'll work as suitable place for documentation,
docs/mdev.txt seems to fall behind because it is farther away
from actual code...
> I call the following chunk of code to get things working:
> ---------
> echo 'Creating devices...'
> # set hotplug helper
> echo >/sys/kernel/uevent_helper
> echo /sbin/mdev >/proc/sys/kernel/hotplug
> # create devices respecting overloaded /etc/mdev.conf
> mdev -s
> # coldplug: enumerate network devices for hotplug to process mdev.conf
> rules on them
> # since mdev -s still 'just creates device nodes'
> for i in /sys/class/net/*/uevent; do echo -n add >$i; done
>
> echo 'Loading modules...'
> # coldplug: load devices supporting modules
> find /sys/devices -name modalias | xargs -r cat | xargs -r modprobe -qa
> ---------
>
> Please, comment, provide feedback.
Please rediff... :(
--
vda
More information about the busybox
mailing list