chiark / gitweb /
udev_sysfs: unify symlink resolving
[elogind.git] / udevinfo.8
1 .\"     Title: udevinfo
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
4 .\"      Date: August 2005
5 .\"    Manual: udevinfo
6 .\"    Source: udev
7 .\"
8 .TH "UDEVINFO" "8" "August 2005" "udev" "udevinfo"
9 .\" disable hyphenation
10 .nh
11 .\" disable justification (adjust text to left margin only)
12 .ad l
13 .SH "NAME"
14 udevinfo \- query device information from the udev database
15 .SH "SYNOPSIS"
16 .HP 9
17 \fBudevinfo\fR [\fB\-\-query=\fR\fB\fIquery\-type\fR\fR] [\fB\-\-path=\fR\fB\fIdevpath\fR\fR] [\fB\-\-name=\fR\fB\fInode\fR\fR] [\fB\-\-root\fR] [\fB\-\-attribute\-walk\fR] [\fB\-\-export\-db\fR] [\fB\-\-version\fR] [\fB\-\-help\fR]
18 .SH "DESCRIPTION"
19 .PP
20 udevinfo queries the udev database for device information stored in the udev database. It can also query the properties of a device from its sysfs representation to help creating udev rules that match this device.
21 .SH "OPTIONS"
22 .TP 3n
23 \fB\-\-query=\fR\fB\fItype\fR\fR
24 Query the database for specified type of device data. It needs the
25 \fB\-\-path\fR
26 or
27 \fB\-\-name\fR
28 to identify the specified device. Valid queries are:
29 \fBname\fR,
30 \fBsymlink\fR,
31 \fBpath\fR,
32 \fBenv\fR,
33 \fBall\fR.
34 .TP 3n
35 \fB\-\-path=\fR\fB\fIdevpath\fR\fR
36 The devpath of the device to query.
37 .TP 3n
38 \fB\-\-name=\fR\fB\fInode\fR\fR
39 The name of the device node or a symlink to query
40 .TP 3n
41 \fB\-\-root\fR
42 The udev root directory:
43 \fI/dev\fR. If used in conjunction with a
44 \fBname\fR
45 or
46 \fBsymlink\fR
47 query, the query returns the absolute path including the root directory.
48 .TP 3n
49 \fB\-\-attribute\-walk\fR
50 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.
51 .TP 3n
52 \fB\-\-export\fR
53 Export the content of the udev database.
54 .TP 3n
55 \fB\-\-help\fR
56 Print help text.
57 .SH "AUTHOR"
58 .PP
59 Written by Kay Sievers
60 <kay.sievers@vrfy.org>.
61 .SH "SEE ALSO"
62 .PP
63 \fBudev\fR(7)