2005-08-30 06:41:42 +04:00
<?xml version='1.0'?>
< !DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<article >
<section >
<title > udevinfo</title>
<refentry >
<refentryinfo >
<title > udevinfo</title>
<date > August 2005</date>
<productname > udev</productname>
</refentryinfo>
<refmeta >
<refentrytitle > udevinfo</refentrytitle>
<manvolnum > 8</manvolnum>
2006-07-29 04:08:58 +04:00
<refmiscinfo class= "version" > </refmiscinfo>
2005-08-30 06:41:42 +04:00
</refmeta>
<refnamediv >
<refname > udevinfo</refname> <refpurpose > query device information from the udev database</refpurpose>
</refnamediv>
<refsynopsisdiv >
<cmdsynopsis >
<command > udevinfo</command>
2006-09-03 06:05:20 +04:00
<arg > <option > --query=<replaceable > query-type</replaceable> </option> </arg>
<arg > <option > --attribute-walk</option> </arg>
<arg > <option > --path=<replaceable > devpath</replaceable> </option> </arg>
<arg > <option > --name=<replaceable > node</replaceable> </option> </arg>
<arg > <option > --root</option> </arg>
<arg > <option > --export-db</option> </arg>
<arg > <option > --version</option> </arg>
<arg > <option > --help</option> </arg>
2005-08-30 06:41:42 +04:00
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 > <title > DESCRIPTION</title>
<para > udevinfo queries the udev database for device information
2005-08-30 07:02:11 +04:00
stored in the udev database. It can also query the properties
2005-08-30 06:41:42 +04:00
of a device from its sysfs representation to help creating udev
2005-08-30 07:02:11 +04:00
rules that match this device.</para>
2005-08-30 06:41:42 +04:00
</refsect1>
<refsect1 > <title > OPTIONS</title>
<variablelist >
<varlistentry >
2006-09-03 06:05:20 +04:00
<term > <option > --query=<replaceable > type</replaceable> </option> </term>
2005-08-30 06:41:42 +04:00
<listitem >
<para > Query the database for specified type of device data. It needs the
2006-09-03 06:05:20 +04:00
<option > --path</option> or <option > --name</option> to identify the specified
2005-08-30 06:41:42 +04:00
device. Valid queries are:
<command > name</command> , <command > symlink</command> , <command > path</command> ,
<command > env</command> , <command > all</command> .</para>
</listitem>
</varlistentry>
<varlistentry >
2006-09-03 06:05:20 +04:00
<term > <option > --path=<replaceable > devpath</replaceable> </option> </term>
2005-08-30 06:41:42 +04:00
<listitem >
2006-07-29 03:48:11 +04:00
<para > The devpath of the device to query.</para>
2005-08-30 06:41:42 +04:00
</listitem>
</varlistentry>
<varlistentry >
2006-09-03 06:05:20 +04:00
<term > <option > --name=<replaceable > node</replaceable> </option> </term>
2005-08-30 06:41:42 +04:00
<listitem >
<para > The name of the device node or a symlink to query</para>
</listitem>
</varlistentry>
<varlistentry >
2006-09-03 06:05:20 +04:00
<term > <option > --root</option> </term>
2005-08-30 06:41:42 +04:00
<listitem >
<para > The udev root directory: <filename > /dev</filename> . If used in conjunction
with a <command > name</command> or <command > symlink</command> query, the
2006-09-03 06:05:20 +04:00
query returns the absolute path including the root directory.</para>
</listitem>
</varlistentry>
<varlistentry >
<term > <option > --attribute-walk</option> </term>
<listitem >
<para > Print all sysfs properties of the specified device that can be used
in udev rules to match the specified device. It prints all devices
along the chain, up to the root of sysfs that can be used in udev rules.</para>
2005-08-30 06:41:42 +04:00
</listitem>
</varlistentry>
<varlistentry >
2006-09-03 06:05:20 +04:00
<term > <option > --export</option> </term>
2005-08-30 06:41:42 +04:00
<listitem >
<para > Export the content of the udev database.</para>
</listitem>
</varlistentry>
<varlistentry >
2006-09-03 06:05:20 +04:00
<term > <option > --help</option> </term>
2005-08-30 06:41:42 +04:00
<listitem >
<para > Print help text.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 > <title > AUTHOR</title>
<para > Written by Kay Sievers <email > kay.sievers@vrfy.org</email> .</para>
</refsect1>
<refsect1 >
<title > SEE ALSO</title>
<para > <citerefentry >
2006-03-28 22:16:34 +04:00
<refentrytitle > udev</refentrytitle> <manvolnum > 7</manvolnum>
2005-08-30 06:41:42 +04:00
</citerefentry> </para>
</refsect1>
</refentry>
</section>
</article>