1 udev - userspace device management
3 Integrating udev in the system has complex dependencies and differs from distro
4 to distro. All major distros depend on udev these days and the system may not
5 work without a properly installed version. The upstream udev project does not
6 recommend to replace a distro's udev installation with the upstream version.
8 Tools and rules shipped by udev are not public API and may change at any time.
9 Never call any private tool in /lib/udev from any external application, it might
10 just go away in the next release. Access to udev information is only offered
11 by udevadm and libudev. Tools and rules in /lib/udev, and the entire content of
12 the /dev/.udev directory is private to udev and does change whenever needed.
15 - Version 2.6.27 of the Linux kernel with sysfs, procfs, signalfd, inotify,
16 unix domain sockets, networking and hotplug enabled:
18 CONFIG_UEVENT_HELPER_PATH=""
22 CONFIG_SYSFS_DEPRECATED*=n
27 CONFIG_TMPFS_POSIX_ACL=y (user ACLs for device nodes)
28 CONFIG_BLK_DEV_BSG=y (SCSI devices)
30 - For reliable operations, the kernel must not use the CONFIG_SYSFS_DEPRECATED*
33 - Unix domain sockets (CONFIG_UNIX) as a loadable kernel module may work,
34 but it is not supported.
36 - The proc filesystem must be mounted on /proc, the sysfs filesystem must
37 be mounted at /sys. No other locations are supported by udev.
39 - The system must have the following group names resolvable at udev startup:
40 disk, cdrom, floppy, tape, audio, video, lp, tty, dialout, kmem.
41 Especially in LDAP setups, it is required, that getgrnam() is able to resolve
42 these group names with only the rootfs mounted, and while no network is
45 - To build all udev extras, libacl, libglib2, libusb, usbutils, pciutils,
46 gperf are needed. These dependencies can be disabled with the
47 --disable-extras option.
50 Udev creates and removes device nodes in /dev, based on events the kernel
51 sends out on device discovery or removal.
53 - Early in the boot process, the /dev directory should get a 'tmpfs'
54 filesystem mounted, which is maintained by udev. Created nodes or changed
55 permissions will not survive a reboot, which is intentional.
57 - The content of /lib/udev/devices directory which contains the nodes,
58 symlinks and directories, which are always expected to be in /dev, should
59 be copied over to the tmpfs mounted /dev, to provide the required nodes
60 to initialize udev and continue booting.
62 - The deprecated hotplug helper /sbin/hotplug should be disabled in the
63 kernel configuration, it is not needed today, and may render the system
64 unusable because the kernel may create too many processes in parallel
65 so that the system runs out-of-memory.
67 - All kernel events are matched against a set of specified rules in
68 /lib/udev/rules.d which make it possible to hook into the event
69 processing to load required kernel modules and setup devices. For all
70 devices the kernel exports a major/minor number, udev will create a
71 device node with the default kernel name, or the one specified by a
74 Please direct any comment/question to the linux-hotplug mailing list at:
75 linux-hotplug@vger.kernel.org