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