chiark / gitweb /
man: clarify $attr{} parent searching
authorKarl O. Pinc <kop@meme.com>
Wed, 2 Jul 2008 08:20:58 +0000 (10:20 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 2 Jul 2008 08:20:58 +0000 (10:20 +0200)
udev.7
udev.xml

diff --git a/udev.7 b/udev.7
index b27b65c3656eefd642e5707645db2361679e77a9..e7de82ea0736316934e7ee659e6f50e6e6d83672 100644 (file)
--- a/udev.7
+++ b/udev.7
@@ -357,7 +357,7 @@ and
 .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\.
+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, follow the chain of parent devices and use the value of the first attribute that matches\. If the attribute is a symlink, the last element of the symlink target is returned as the value\.
 .RE
 .PP
 \fB$env{\fR\fB\fIkey\fR\fR\fB}\fR, \fB%E{\fR\fB\fIkey\fR\fR\fB}\fR
index 5eff452b771d9db52c45e99e2cd6516f9393f98f..7fefe48a44b11b719e78d86ce8326408db2186b7 100644 (file)
--- a/udev.xml
+++ b/udev.xml
               <listitem>
                 <para>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.
+                such an attribute, follow the chain of parent devices and use the value
+                of the first attribute that matches.
                 If the attribute is a symlink, the last element of the symlink target is
                 returned as the value.</para>
               </listitem>