X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=docs%2Fudev.xml;h=7e29077977363e5ed0aefc0aae4e38a9aa28ae72;hp=7f6a30df521de55a379bf8c8b957b59f09ff03d5;hb=2c769419a18281ab095809cf3c37a36f0f615c01;hpb=1aa1e24848903d11780db1ade355be73ad61a937
diff --git a/docs/udev.xml b/docs/udev.xml
index 7f6a30df5..7e2907797 100644
--- a/docs/udev.xml
+++ b/docs/udev.xml
@@ -27,7 +27,7 @@
udev
- 8
+ 7
@@ -148,66 +148,68 @@
- Match the kernel action name.
+ Match the name of the event action.
- Match the kernel device name
+ Match the name of the device.
- Match the kernel devpath.
+ Match the devpath of the device.
- Match the kernel subsystem name
+ Match the subsystem of the device.
- Match the type of bus the device is connected to.
+ Search the devpath upwards for a matching device subsystem name.
- Match the kernel driver name.
+ Search the devpath upwards for a matching device driver name.
- Match the device number on the bus.
+ Search the devpath upwards for a matching device name.
-
+
- Match against the value of an environment key. Depending on
- the specified operation, this key is also used as an assignment.
+ Search the devpath upwards for a device with matching sysfs attribute values.
+ Up to five keys can be specified per rule. All attributes
+ must match on the same device. Trailing whitespace in the attribute values is ignored,
+ if the specified match value does not contain trailing whitespace itself.
-
+
- Match the sysfs attribute value. Up to five values can be specified.
- Trailing whitespace is ignored, if the specified match value does not contain
- trailing whitespace itself.
+ Match against the value of an environment variable. Up to five
+ keys can be specified per rule. This key can also be used to export a variable to
+ the environment.
@@ -290,8 +292,8 @@
- Export the key to the environment. Depending on the specified
- operation, this key is also used as a match.
+ Export a variable to the environment. This key can also be used to match
+ against an environment variable.
@@ -320,7 +322,7 @@
- Import the printed result or the content of a file in environment key
+ Import the printed result or the value of a file in environment key
format into the event environment. will execute an
external program and read its output. will inport a
text file. If no option is given, udev will determine it from the executable
@@ -331,8 +333,8 @@
- Wait for the specified sysfs file of the device to be created. May be used
- to fight agains timing issues wth the kernel.
+ Wait for the specified sysfs file of the device to be created. Can be used
+ to fight against kernel sysfs timing issues.
@@ -355,14 +357,14 @@
printf-like string substitutions:
- ,
+ , The kernel name for this device.
- ,
+ , The kernel number for this device. For example, 'sda3' has
kernel number of '3'
@@ -370,42 +372,51 @@
- ,
+ , The devpath of the device.
- ,
+ ,
- The content of a sysfs attribute.
+ The name of the device matched while searching the devpath upwards for
+ , and .
+
- ,
+ ,
+
+ The value of a sysfs attribute found at the current or a parent device.
+
+
+
+
+ , The value of an environment variable.
- ,
+ , The kernel major number for the device.
-
+ The kernel minor number for the device.
- ,
+ , The string returned by the external program requested with PROGRAM.
A single part of the string, separated by a space character may be selected
@@ -416,21 +427,21 @@
- ,
+ , The node name of the parent device.
- ,
+ , The udev_root value.
- ,
+ , The name of a created temporary device node to provide access to
the device from a external program before the real node is created.
@@ -499,14 +510,11 @@
SEE ALSO
- udev8
+ udevd8,
udevinfo8,
-
- udevd8
- ,
udevmonitor8