Udev: Introduction to Device Management In Modern Linux System
Dec 20, 2009, 15:02 (0 Talkback[s])
"Udev supplies a dynamic device directory containing only the
nodes for devices which are connected to the system. It creates or
removes the device node files in the /dev directory as they are
plugged in or taken out. Dbus is like a system bus which is used
for inter-process communication. The HAL gets information from the
Udev service, when a device is attached to the system and it
creates an XML representation of that device. It then notifies the
corresponding desktop application like Nautilus through the Dbus
and Nautilus will open the mounted device's files.
"This article focuses only on Udev, which does the basic device
identification. What is Udev?
"Udev is the device manager for the Linux 2.6 kernel that
creates/removes device nodes in the /dev directory dynamically. It
is the successor of devfs and hotplug. It runs in userspace and the
user can change device names using Udev rules.
"Udev depends on the sysfs file system which was introduced in
the 2.5 kernel. It is sysfs which makes devices visible in user
space. When a device is added or removed, kernel events are
produced which will notify Udev in user space."
Complete
Story
Related Stories:
- Ubuntu 10.04 Will Have "Simple Scan"(Dec 07, 2009)
- Scanning in Linux with iscan and XSane(Nov 02, 2009)
- Dell Rolls Out Laser Printer (supports Linux)(Oct 05, 2009)
- Linux File Ownership(Sep 01, 2009)
- Linux File Permissions(Sep 01, 2009)
- Writing UDEV rules to get a SCSI scanner working on Ubuntu(Aug 17, 2009)
- VL-Hot: A Non-polling Alternative To HAL(Feb 23, 2009)
- 10 Ways to Reduce Removable Media Headaches in Linux(Dec 03, 2008)
- Kernel Space: udev Rules, But Whose?(Aug 25, 2008)