All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch to udev.7 to clarify $attr{} parent searching
@ 2008-06-28  0:38 Karl O. Pinc
  2008-07-02  8:22 ` Kay Sievers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Karl O. Pinc @ 2008-06-28  0:38 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

Attached patch against udev.7 of udev-124.

Clarifies that the first match is used when
$attr{} substitution searches through parent
devices.

Apply in udev-124 directory with:
patch < /foo/udev.7-patch

(Also, I didn't make the change, but shouldn't
the last sentence of the patched paragraph be
a new paragraph?)


Karl <kop@meme.com>
Free Software:  "You don't pay back, you pay forward."
                  -- Robert A. Heinlein

[-- Attachment #2: udev.7-patch --]
[-- Type: text/x-patch, Size: 973 bytes --]

--- ../../udev-124/udev.7	2008-06-12 00:24:30.000000000 -0500
+++ udev.7	2008-06-27 19:28:18.000000000 -0500
@@ -357,7 +357,7 @@
 .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 then 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-07-02 16:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-28  0:38 Patch to udev.7 to clarify $attr{} parent searching Karl O. Pinc
2008-07-02  8:22 ` Kay Sievers
2008-07-02 16:00 ` Karl O. Pinc
2008-07-02 16:07 ` Kay Sievers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.