aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-08-21 02:39:22 +0200
committerKay Sievers <kay.sievers@suse.de>2006-08-21 02:39:22 +0200
commit02adc0cbd637862f6e9cf8319c80def0fa31b4e7 (patch)
tree856b4789a8c1b2057b4eb0cb3689ec6bb3a4e984
parente3e7358137a35849f81a8e18ca548ded22a2b5cc (diff)
downloadudev-02adc0cbd637862f6e9cf8319c80def0fa31b4e7.tar.gz
man: add ATTR{file}="value" assignment
-rw-r--r--udev.79
-rw-r--r--udev.xml21
2 files changed, 22 insertions, 8 deletions
diff --git a/udev.7 b/udev.7
index e6828ee4..fa6e52fd 100644
--- a/udev.7
+++ b/udev.7
@@ -88,7 +88,7 @@ Match the subsystem of the event device.
\fBATTR{\fR\fB\fIfilename\fR\fR\fB}\fR
Match sysfs attribute values of the event device. Up to five
\fBATTR\fR
-keys can be specified per rule. Trailing whitespace in the attribute values is ignored, if the specified match value does not contain trailing whitespace itself.
+keys can be specified per rule. Trailing whitespace in the attribute values is ignored, if the specified match value does not contain trailing whitespace itself. Depending on the type of operator, this key is also used to set the value of a sysfs attribute.
.TP 3n
\fBKERNELS\fR
Search the devpath upwards for a matching device name.
@@ -107,7 +107,7 @@ keys can be specified per rule. All attributes must match on the same device. Tr
\fBENV{\fR\fB\fIkey\fR\fR\fB}\fR
Match against the value of an environment variable. Up to five
\fBENV\fR
-keys can be specified per rule. This key can also be used to export a variable to the environment.
+keys can be specified per rule. Depending on the type of operator, this key is also used to export a variable to the environment.
.TP 3n
\fBPROGRAM\fR
Execute external program. The key is true, if the program returns without exit code zero. The whole event environment is available to the executed program. The program's output printed to stdout is available for the RESULT key.
@@ -137,8 +137,11 @@ The name of a symlink targeting the node. Every matching rule can add this value
\fBOWNER, GROUP, MODE\fR
The permissions for the device node. Every specified value overwrites the compiled\-in default value.
.TP 3n
+\fBATTR{\fR\fB\fIkey\fR\fR\fB}\fR
+The value that should be written to a sysfs attribute of the event device. Depending on the type of operator, this key is also used to match against the value of a sysfs attribute.
+.TP 3n
\fBENV{\fR\fB\fIkey\fR\fR\fB}\fR
-Export a variable to the environment. This key can also be used to match against an environment variable.
+Export a variable to the environment. Depending on the type of operator, this key is also to match against an environment variable.
.TP 3n
\fBRUN\fR
Add a program to the list of programs to be executed for a specific device. This can only be used for very short running tasks. Running an event process for a long period of time may block all further events for this or a dependent device. Long running tasks need to be immediately detached from the event process itself.
diff --git a/udev.xml b/udev.xml
index 84341565..b2781b76 100644
--- a/udev.xml
+++ b/udev.xml
@@ -174,7 +174,9 @@
<para>Match sysfs attribute values of the event device. Up to five
<option>ATTR</option> keys can be specified per rule. Trailing
whitespace in the attribute values is ignored, if the specified match
- value does not contain trailing whitespace itself.</para>
+ value does not contain trailing whitespace itself. Depending on the type
+ of operator, this key is also used to set the value of a sysfs attribute.
+ </para>
</listitem>
</varlistentry>
@@ -213,8 +215,8 @@
<term><option>ENV{<replaceable>key</replaceable>}</option></term>
<listitem>
<para>Match against the value of an environment variable. Up to five <option>ENV</option>
- keys can be specified per rule. This key can also be used to export a variable to
- the environment.</para>
+ keys can be specified per rule. Depending on the type of operator, this key is also used
+ to export a variable to the environment.</para>
</listitem>
</varlistentry>
@@ -295,10 +297,19 @@
</varlistentry>
<varlistentry>
+ <term><option>ATTR{<replaceable>key</replaceable>}</option></term>
+ <listitem>
+ <para>The value that should be written to a sysfs attribute of the
+ event device. Depending on the type of operator, this key is also
+ used to match against the value of a sysfs attribute.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>ENV{<replaceable>key</replaceable>}</option></term>
<listitem>
- <para>Export a variable to the environment. This key can also be used to match
- against an environment variable.</para>
+ <para>Export a variable to the environment. Depending on the type of operator,
+ this key is also to match against an environment variable.</para>
</listitem>
</varlistentry>