|
|
9fc0f6 |
From 52473fa9ee6d097431c48c0b9c4b4a51837c75eb Mon Sep 17 00:00:00 2001
|
|
|
9fc0f6 |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
|
9fc0f6 |
Date: Sun, 13 Oct 2013 19:43:19 -0400
|
|
|
9fc0f6 |
Subject: [PATCH] man: add more markup to udevadm(8)
|
|
|
9fc0f6 |
|
|
|
9fc0f6 |
---
|
|
|
9fc0f6 |
man/udevadm.xml | 49 +++++++++++++++++++++++++++++++++----------------
|
|
|
9fc0f6 |
1 file changed, 33 insertions(+), 16 deletions(-)
|
|
|
9fc0f6 |
|
|
|
9fc0f6 |
diff --git a/man/udevadm.xml b/man/udevadm.xml
|
|
|
9fc0f6 |
index b959216..a1ffe42 100644
|
|
|
9fc0f6 |
--- a/man/udevadm.xml
|
|
|
9fc0f6 |
+++ b/man/udevadm.xml
|
|
|
9fc0f6 |
@@ -61,9 +61,10 @@
|
|
|
9fc0f6 |
</refsynopsisdiv>
|
|
|
9fc0f6 |
|
|
|
9fc0f6 |
<refsect1><title>Description</title>
|
|
|
9fc0f6 |
- <para>udevadm expects a command and command specific options. It
|
|
|
9fc0f6 |
- controls the runtime behavior of udev, requests kernel events,
|
|
|
9fc0f6 |
- manages the event queue, and provides simple debugging mechanisms.</para>
|
|
|
9fc0f6 |
+ <para><command>udevadm</command> expects a command and command
|
|
|
9fc0f6 |
+ specific options. It controls the runtime behavior of
|
|
|
9fc0f6 |
+ <command>systemd-udevd</command>, requests kernel events, manages
|
|
|
9fc0f6 |
+ the event queue, and provides simple debugging mechanisms.</para>
|
|
|
9fc0f6 |
</refsect1>
|
|
|
9fc0f6 |
|
|
|
9fc0f6 |
<refsect1><title>OPTIONS</title>
|
|
|
9fc0f6 |
@@ -97,23 +98,37 @@
|
|
|
9fc0f6 |
<varlistentry>
|
|
|
9fc0f6 |
<term><option>--query=<replaceable>type</replaceable></option></term>
|
|
|
9fc0f6 |
<listitem>
|
|
|
9fc0f6 |
- <para>Query the database for specified type of device data. It needs the
|
|
|
9fc0f6 |
- <option>--path</option> or <option>--name</option> to identify the specified
|
|
|
9fc0f6 |
- device. Valid queries are:
|
|
|
9fc0f6 |
- <command>name</command>, <command>symlink</command>, <command>path</command>,
|
|
|
9fc0f6 |
- <command>property</command>, <command>all</command>.</para>
|
|
|
9fc0f6 |
+ <para>Query the database for specified type of device
|
|
|
9fc0f6 |
+ data. It needs the <option>--path</option> or
|
|
|
9fc0f6 |
+ <option>--name</option> to identify the specified
|
|
|
9fc0f6 |
+ device. Valid queries are: <constant>name</constant>,
|
|
|
9fc0f6 |
+ <constant>symlink</constant>, <constant>path</constant>,
|
|
|
9fc0f6 |
+ <constant>property</constant>,
|
|
|
9fc0f6 |
+ <constant>all</constant>.</para>
|
|
|
9fc0f6 |
</listitem>
|
|
|
9fc0f6 |
</varlistentry>
|
|
|
9fc0f6 |
<varlistentry>
|
|
|
9fc0f6 |
<term><option>--path=<replaceable>devpath</replaceable></option></term>
|
|
|
9fc0f6 |
<listitem>
|
|
|
9fc0f6 |
- <para>The devpath of the device to query.</para>
|
|
|
9fc0f6 |
+ <para>The <filename>/sys</filename> path of the device to
|
|
|
9fc0f6 |
+ query, e.g.
|
|
|
9fc0f6 |
+ <filename><optional>/sys</optional>/class/block/sda</filename>.
|
|
|
9fc0f6 |
+ Note that this option usually isn't very useful, since
|
|
|
9fc0f6 |
+ <command>udev</command> can guess the type of the
|
|
|
9fc0f6 |
+ argument, so <command>udevadm
|
|
|
9fc0f6 |
+ --devpath=/class/block/sda</command> is equivalent to
|
|
|
9fc0f6 |
+ <command>udevadm /sys/class/block/sda</command>.</para>
|
|
|
9fc0f6 |
</listitem>
|
|
|
9fc0f6 |
</varlistentry>
|
|
|
9fc0f6 |
<varlistentry>
|
|
|
9fc0f6 |
<term><option>--name=<replaceable>file</replaceable></option></term>
|
|
|
9fc0f6 |
<listitem>
|
|
|
9fc0f6 |
- <para>The name of the device node or a symlink to query</para>
|
|
|
9fc0f6 |
+ <para>The name of the device node or a symlink to query,
|
|
|
9fc0f6 |
+ e.g. <filename><optional>/dev</optional>/sda</filename>.
|
|
|
9fc0f6 |
+ Note that this option usually isn't very useful, since
|
|
|
9fc0f6 |
+ <command>udev</command> can guess the type of the
|
|
|
9fc0f6 |
+ argument, so <command>udevadm --name=sda</command> is
|
|
|
9fc0f6 |
+ equivalent to <command>udevadm /dev/sda</command>.</para>
|
|
|
9fc0f6 |
</listitem>
|
|
|
9fc0f6 |
</varlistentry>
|
|
|
9fc0f6 |
<varlistentry>
|
|
|
9fc0f6 |
@@ -462,13 +477,15 @@
|
|
|
9fc0f6 |
</listitem>
|
|
|
9fc0f6 |
</varlistentry>
|
|
|
9fc0f6 |
<varlistentry>
|
|
|
9fc0f6 |
- <term><option>--resolve-names=<replaceable>early|late|never</replaceable></option></term>
|
|
|
9fc0f6 |
+ <term><option>--resolve-names=<constant>early</constant>|<constant>late</constant>|<constant>never</constant></option></term>
|
|
|
9fc0f6 |
<listitem>
|
|
|
9fc0f6 |
- <para>Specify when udevadm should resolve names of users and groups.
|
|
|
9fc0f6 |
- When set to early (the default) names will be resolved when the
|
|
|
9fc0f6 |
- rules are parsed. When set to late names will be resolved for
|
|
|
9fc0f6 |
- every event. When set to never names will never be resolved and
|
|
|
9fc0f6 |
- all devices will be owned by root.</para>
|
|
|
9fc0f6 |
+ <para>Specify when udevadm should resolve names of users
|
|
|
9fc0f6 |
+ and groups. When set to <constant>early</constant> (the
|
|
|
9fc0f6 |
+ default) names will be resolved when the rules are
|
|
|
9fc0f6 |
+ parsed. When set to <constant>late</constant> names will
|
|
|
9fc0f6 |
+ be resolved for every event. When set to
|
|
|
9fc0f6 |
+ <constant>never</constant> names will never be resolved
|
|
|
9fc0f6 |
+ and all devices will be owned by root.</para>
|
|
|
9fc0f6 |
</listitem>
|
|
|
9fc0f6 |
</varlistentry>
|
|
|
9fc0f6 |
<varlistentry>
|