All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Karl O. Pinc" <kop@meme.com>
To: linux-hotplug@vger.kernel.org
Subject: Patch to udev.7 to clarify $attr{} parent searching
Date: Sat, 28 Jun 2008 00:38:44 +0000	[thread overview]
Message-ID: <1214613524l.30059l.0l@mofo> (raw)

[-- 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


             reply	other threads:[~2008-06-28  0:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-28  0:38 Karl O. Pinc [this message]
2008-07-02  8:22 ` Patch to udev.7 to clarify $attr{} parent searching Kay Sievers
2008-07-02 16:00 ` Karl O. Pinc
2008-07-02 16:07 ` Kay Sievers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1214613524l.30059l.0l@mofo \
    --to=kop@meme.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.