[Bug 7412] New: mdev: implement a daemon which receives kernel uevents via a netlink socket

bugzilla at busybox.net bugzilla at busybox.net
Wed Sep 10 14:46:23 UTC 2014


https://bugs.busybox.net/show_bug.cgi?id=7412

           Summary: mdev: implement a daemon which receives kernel uevents
                    via a netlink socket
           Product: Busybox
           Version: 1.22.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: develop at kristov.de
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


Created attachment 5642
  --> https://bugs.busybox.net/attachment.cgi?id=5642
implement a daemon which receives kernel uevents via a netlink socket

At least since 2.6.13, the Linux kernel implements an efficient netlink socket
protocol to notify user space about events (adding or removal of devices etc.),
which is also used by udev. This patch adds this functionality to mdev, making
it configurable at build-time by the CONFIG_FEATURE_MDEV_NETLINK setting. The
main (if not _the_ advantage) is that using netlink, it is not necessary to
spawn an mdev process for each event, reducing the system load at boot time
considerably. Furthermode, there is no need to maintain and check the sequence
file mdev.seq for serializing event processing (which did not work reliably
anyway, at least not for us).

This implementation currently always serializes processing of netlink events,
as if mdev.seq was available; processing netlink events in parallel is not
supported by CONFIG_FEATURE_MDEV_NETLINK yet.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list