chiark / gitweb /
rules: fix typo in 80-drivers.rules
[elogind.git] / udev.7
diff --git a/udev.7 b/udev.7
index a4b15886c7ed3e312f88974f61a84471c9bacfcf..821a476aefe3eeb39f408e7ff97eeffe09672be4 100644 (file)
--- a/udev.7
+++ b/udev.7
@@ -151,6 +151,11 @@ Match against the value of an environment variable. Up to five
 keys can be specified per rule. Depending on the type of operator, this key is also used to export a variable to the environment.
 .RE
 .PP
+\fBTEST{\fR\fB\fIoctal mode mask\fR\fR\fB}\fR
+.RS 4
+Test the existence of a file. An octal mode mask can be specified if needed.
+.RE
+.PP
 \fBPROGRAM\fR
 .RS 4
 Execute external program. The key is true, if the program returns with exit code zero. The whole event environment is available to the executed program. The program's output printed to stdout, is available in the RESULT key.
@@ -285,6 +290,11 @@ Specify the priority of the created symlinks. Devices with higher priorities ove
 .RS 4
 Create the device nodes for all available partitions of a block device. This may be useful for removable media devices where media changes are not detected.
 .RE
+.PP
+\fBstring_escape=\fR\fB\fInone|replace\fR\fR
+.RS 4
+Usually control and other possibly unsafe characters are replaced in strings used for device naming. The mode of replacement can be specified with this option.
+.RE
 .RE
 .RE
 .PP
@@ -325,6 +335,16 @@ and
 \fBATTRS\fR.
 .RE
 .PP
+\fB$driver\fR, \fB%d\fR
+.RS 4
+The driver name of the device matched while searching the devpath upwards for
+\fBSUBSYSTEMS\fR,
+\fBKERNELS\fR,
+\fBDRIVERS\fR
+and
+\fBATTRS\fR.
+.RE
+.PP
 \fB$attr{\fR\fB\fIfile\fR\fR\fB}\fR, \fB%s{\fR\fB\fIfile\fR\fR\fB}\fR
 .RS 4
 The value of a sysfs attribute found at the device, where all keys of the rule have matched. If the matching device does not have such an attribute, all devices along the chain of parents are searched for a matching attribute. If the attribute is a symlink, the last element of the symlink target is returned as the value.
@@ -362,6 +382,11 @@ The node name of the parent device.
 The udev_root value.
 .RE
 .PP
+\fB$sys\fR, \fB%S\fR
+.RS 4
+The sysfs mount point.
+.RE
+.PP
 \fB$tempnode\fR, \fB%N\fR
 .RS 4
 The name of a created temporary device node to provide access to the device from a external program before the real node is created.