summaryrefslogtreecommitdiff
path: root/udev.8.in
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-02-10 09:03:55 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:31:03 -0700
commit69aa6dfb7081de376769cf712d1a8832f4346516 (patch)
treef16b036de774445577556e4005e48da3312bb464 /udev.8.in
parent866bb54704e9d955318e0dd6089acfb67d36bfd2 (diff)
[PATCH] add %P modifier to query the node name of the parent device
Events for partition devies may want to read the main block device name to compose it's own name or read a disklabel from the main device. SUBSYSTEM="block", KERNEL="*[1-9]", NAME="%P-p%n" will append the partition number to the name of the main block device.
Diffstat (limited to 'udev.8.in')
-rw-r--r--udev.8.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/udev.8.in b/udev.8.in
index 51c55bc5a6..3fb4bdb8da 100644
--- a/udev.8.in
+++ b/udev.8.in
@@ -218,6 +218,9 @@ all remaining parts of the result string are substituted:
The name of a created temporary device node to provide access to the
device from a external program.
.TP
+.B %P
+The node name of the parent device.
+.TP
.BI %s{ filename }
The content of a sysfs attribute.
.TP