chiark / gitweb /
rules: fix cciss rule
[elogind.git] / udevinfo.8
1 .\"     Title: udevinfo
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.72.0 <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 udev device information
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 .PP
23 \fB\-\-query=\fR\fB\fItype\fR\fR
24 .RS 4
25 Query the database for specified type of device data. It needs the
26 \fB\-\-path\fR
27 or
28 \fB\-\-name\fR
29 to identify the specified device. Valid queries are:
30 \fBname\fR,
31 \fBsymlink\fR,
32 \fBpath\fR,
33 \fBenv\fR,
34 \fBall\fR.
35 .RE
36 .PP
37 \fB\-\-path=\fR\fB\fIdevpath\fR\fR
38 .RS 4
39 The devpath of the device to query.
40 .RE
41 .PP
42 \fB\-\-name=\fR\fB\fInode\fR\fR
43 .RS 4
44 The name of the device node or a symlink to query
45 .RE
46 .PP
47 \fB\-\-root\fR
48 .RS 4
49 The udev root directory:
50 \fI/dev\fR. If used in conjunction with a
51 \fBname\fR
52 or
53 \fBsymlink\fR
54 query, the query returns the absolute path including the root directory.
55 .RE
56 .PP
57 \fB\-\-attribute\-walk\fR
58 .RS 4
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.
60 .RE
61 .PP
62 \fB\-\-export\-db\fR
63 .RS 4
64 Export the content of the udev database.
65 .RE
66 .PP
67 \fB\-\-version\fR
68 .RS 4
69 Print version.
70 .RE
71 .PP
72 \fB\-\-help\fR
73 .RS 4
74 Print help text.
75 .RE
76 .SH "AUTHOR"
77 .PP
78 Written by Kay Sievers
79 <kay.sievers@vrfy.org>.
80 .SH "SEE ALSO"
81 .PP
82 \fBudev\fR(7)