1 .TH UDEV 8 "October 2003" "" "Linux Administrator's Manual"
3 udev \- Linux configurable dynamic device naming support
8 creates or removes device node files usually located in the /dev directory.
13 is exectuted if a kernel device is added or removed from the system.
17 reads the sysfs directory of the given device, to collect device attributes
18 like label, serial number or bus device number.
19 These attributes are passed as a key to the namedev subsystem
20 to receive a unique name for device file creation.
21 namedev maintains a database for devices present on the system.
25 queries the namedev database for the name of the device file to delete.
27 namedev expects its configuration at
28 .I /etc/udev/namedev.config.
29 The file consists of a set of lines. All empty lines and
30 lines beginning with a '#' will be ignored.
32 Every line defines the mapping between device attributes and the device file
33 name. It starts with a keyword defining the method used to match, followed by
34 one ore more keys to compare, optional ownwership and permission settings and
35 the filename for the device. If no matching configuration is found,
36 the default kernel device name is used.
38 .I method, key,[key,...] [owner,] [group,] [mode,] name
41 device label or serial number, like USB serial number, SCSI UUID or
44 keys: \fBBUS\fP, \fIsysfs_attribute\fP
47 device number on the bus, like PCI bus id
49 keys: \fBBUS\fP, \fBID\fP
52 device position on bus, like physical port of USB device
54 keys: \fBBUS\fP, \fBPLACE\fP
57 string replacement of the kernel device name
59 key: \fBKERNEL_NAME\fP
62 calling external program, that returns a string to match
64 keys: \fBBUS\fP, \fBPROGRAM\fP, \fBID\fP
67 # USB printer to be called lp_color
68 LABEL, BUS="usb", serial="W09090207101241330", NAME="lp_color"
70 # sound card with PCI bus id 00:0b.0 to be called dsp
71 NUMBER, BUS="pci", ID="00:0b.0", NAME="dsp"
73 # USB mouse at third port of the second hub to be called mouse1
74 TOPOLOGY, BUS="usb", PLACE="2.3", NAME="mouse1"
76 # ttyUSB1 should always be called pda
77 REPLACE, KERNEL="ttyUSB1", NAME="pda"
79 # if /sbin/dev_id returns "V0815" device will be called dev0815
80 CALLOUT, PROGRAM="/sbin/dev_id", BUS="pci", ID="V0815", NAME="dev0815"
86 /sbin/udev udev program
87 /etc/udev/* udev config and database files
88 /etc/hotplug.d/default/udev.hotplug hotplug symlink to udev program
95 .I http://linux-hotplug.sourceforge.net/
98 udev was developed by Greg Kroah-Hartman <greg@kroah.com> with much help from
99 Dan Stekloff <dsteklof@us.ibm.com> and many others.