2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
9 <firstname>Kay</firstname>
10 <surname>Sievers</surname>
11 <email>kay.sievers@vrfy.org</email>
15 <holder>Kay Sievers</holder>
20 <title>udevinfo</title>
23 <title>udevinfo</title>
24 <date>August 2005</date>
25 <productname>udev</productname>
29 <refentrytitle>udevinfo</refentrytitle>
30 <manvolnum>8</manvolnum>
34 <refname>udevinfo</refname><refpurpose>query device information from the udev database</refpurpose>
39 <command>udevinfo</command>
40 <arg><option>-q <replaceable>query-type</replaceable></option></arg>
41 <arg><option>-a </option></arg>
42 <arg><option>-p <replaceable>device-path</replaceable></option></arg>
43 <arg><option>-n <replaceable>node-name</replaceable></option></arg>
44 <arg><option>-r</option></arg>
45 <arg><option>-e</option></arg>
46 <arg><option>-V</option></arg>
47 <arg><option>-h</option></arg>
51 <refsect1><title>DESCRIPTION</title>
52 <para>udevinfo queries the udev database for device information
53 stored in the udev database. It can also query the properties
54 of a device from its sysfs representation to help creating udev
55 rules that match this device.</para>
58 <refsect1><title>OPTIONS</title>
61 <term><option>-q</option></term>
63 <para>Query the database for specified type of device data. It needs the
64 <option>-p</option> or <option>-n</option> to identify the specified
65 device. Valid queries are:
66 <command>name</command>, <command>symlink</command>, <command>path</command>,
67 <command>env</command>, <command>all</command>.</para>
72 <term><option>-a</option></term>
74 <para>Print all sysfs properties of the specified device that can be used
75 in udev rules to match the specified device. It prints all devices
76 along the chain, up to the root of sysfs that can be used in udev rules.</para>
81 <term><option>-p <replaceable>device-path</replaceable></option></term>
83 <para>The sysfs path of the device to query.</para>
88 <term><option>-n <replaceable>node-name</replaceable></option></term>
90 <para>The name of the device node or a symlink to query</para>
95 <term><option>-r</option></term>
97 <para>The udev root directory: <filename>/dev</filename>. If used in conjunction
98 with a <command>name</command> or <command>symlink</command> query, the
99 query returns the absolute path.</para>
104 <term><option>-e</option></term>
106 <para>Export the content of the udev database.</para>
111 <term><option>-h</option></term>
113 <para>Print help text.</para>
119 <refsect1><title>AUTHOR</title>
120 <para>Written by Kay Sievers <email>kay.sievers@vrfy.org</email>.</para>
124 <title>SEE ALSO</title>
126 <refentrytitle>udev</refentrytitle><manvolnum>7</manvolnum>
127 </citerefentry></para>