chiark / gitweb /
rename udevcontrol message types and variables
[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\-q\ \fR\fB\fIquery\-type\fR\fR] [\fB\-a\ \fR] [\fB\-p\ \fR\fB\fIdevpath\fR\fR] [\fB\-n\ \fR\fB\fInode\fR\fR] [\fB\-r\fR] [\fB\-e\fR] [\fB\-V\fR] [\fB\-h\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\-q\fR
24 Query the database for specified type of device data. It needs the
25 \fB\-p\fR
26 or
27 \fB\-n\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\-a\fR
36 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.
37 .TP 3n
38 \fB\-p \fR\fB\fIdevpath\fR\fR
39 The devpath of the device to query.
40 .TP 3n
41 \fB\-n \fR\fB\fInode\fR\fR
42 The name of the device node or a symlink to query
43 .TP 3n
44 \fB\-r\fR
45 The udev root directory:
46 \fI/dev\fR. If used in conjunction with a
47 \fBname\fR
48 or
49 \fBsymlink\fR
50 query, the query returns the absolute path.
51 .TP 3n
52 \fB\-e\fR
53 Export the content of the udev database.
54 .TP 3n
55 \fB\-h\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)