]>
Commit | Line | Data |
---|---|---|
660508cd KS |
1 | .\" Title: udevinfo |
2 | .\" Author: | |
bba8160f | 3 | .\" Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/> |
660508cd KS |
4 | .\" Date: August 2005 |
5 | .\" Manual: udevinfo | |
6 | .\" Source: udev | |
7 | .\" | |
420a506e KS |
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" | |
4e13cb5f | 14 | udevinfo \- query udev device information |
420a506e KS |
15 | .SH "SYNOPSIS" |
16 | .HP 9 | |
88caa9da | 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] |
e31474a1 | 18 | .SH "DESCRIPTION" |
420a506e | 19 | .PP |
264ccb68 | 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. |
e31474a1 | 21 | .SH "OPTIONS" |
53fc01d5 | 22 | .PP |
11f1bb5a | 23 | \fB\-\-query=\fR\fB\fItype\fR\fR |
26133d54 | 24 | .RS 4 |
0d210b3a | 25 | Query the database for specified type of device data. It needs the |
11f1bb5a | 26 | \fB\-\-path\fR |
0d210b3a | 27 | or |
11f1bb5a | 28 | \fB\-\-name\fR |
0d210b3a KS |
29 | to identify the specified device. Valid queries are: |
30 | \fBname\fR, | |
31 | \fBsymlink\fR, | |
32 | \fBpath\fR, | |
33 | \fBenv\fR, | |
420a506e | 34 | \fBall\fR. |
53fc01d5 BK |
35 | .RE |
36 | .PP | |
11f1bb5a | 37 | \fB\-\-path=\fR\fB\fIdevpath\fR\fR |
26133d54 | 38 | .RS 4 |
660508cd | 39 | The devpath of the device to query. |
53fc01d5 BK |
40 | .RE |
41 | .PP | |
11f1bb5a | 42 | \fB\-\-name=\fR\fB\fInode\fR\fR |
26133d54 | 43 | .RS 4 |
420a506e | 44 | The name of the device node or a symlink to query |
53fc01d5 BK |
45 | .RE |
46 | .PP | |
11f1bb5a | 47 | \fB\-\-root\fR |
26133d54 | 48 | .RS 4 |
0d210b3a KS |
49 | The udev root directory: |
50 | \fI/dev\fR. If used in conjunction with a | |
51 | \fBname\fR | |
52 | or | |
53 | \fBsymlink\fR | |
11f1bb5a | 54 | query, the query returns the absolute path including the root directory. |
53fc01d5 BK |
55 | .RE |
56 | .PP | |
11f1bb5a | 57 | \fB\-\-attribute\-walk\fR |
26133d54 | 58 | .RS 4 |
11f1bb5a | 59 | 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. |
53fc01d5 BK |
60 | .RE |
61 | .PP | |
bba8160f | 62 | \fB\-\-export\-db\fR |
26133d54 | 63 | .RS 4 |
420a506e | 64 | Export the content of the udev database. |
53fc01d5 BK |
65 | .RE |
66 | .PP | |
88caa9da KS |
67 | \fB\-\-version\fR |
68 | .RS 4 | |
69 | Print version. | |
70 | .RE | |
71 | .PP | |
11f1bb5a | 72 | \fB\-\-help\fR |
26133d54 | 73 | .RS 4 |
e31474a1 | 74 | Print help text. |
53fc01d5 | 75 | .RE |
420a506e KS |
76 | .SH "AUTHOR" |
77 | .PP | |
0d210b3a | 78 | Written by Kay Sievers |
420a506e | 79 | <kay.sievers@vrfy.org>. |
e31474a1 | 80 | .SH "SEE ALSO" |
420a506e | 81 | .PP |
16801abd | 82 | \fBudev\fR(7) |