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