From 01e8dd08ef317175d8299ef4cbe24802de80770a Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Wed, 2 Jul 2008 10:20:58 +0200 Subject: [PATCH] man: clarify $attr{} parent searching --- udev.7 | 2 +- udev.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/udev.7 b/udev.7 index b27b65c3..e7de82ea 100644 --- 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 diff --git a/udev.xml b/udev.xml index 5eff452b..7fefe48a 100644 --- a/udev.xml +++ b/udev.xml @@ -522,8 +522,8 @@ 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. -- 2.39.5