summaryrefslogtreecommitdiff
path: root/udevinfo.8
blob: ad16ce6aed43fdc8539ac5cd6ca60ee6a63e5201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.TH UDEVINFO 8 "January 2004" "" "Linux Administrator's Manual"
.SH NAME
udevinfo \- retrieve information from udev
.SH SYNOPSIS
.B udevinfo
.RI "[\-q " query_type " \-p " sysfs_path "] [\-drVh]"
.SH "DESCRIPTION"
.B udevinfo
allows users to query the udev database for information on any of the devices
currently present in the system.  It also provides a way to query any device
in the sysfs tree to help in creating
.B udev
rule files.
.SH "OPTIONS"
.TP
.B \-V
Print the version information.
.TP
.B \-r
Print the the
.B udev_root
directory. When used in conjunction with a query for the node name, the
.B udev_root
will be prepended.
.TP
.BI \-q " query_type"
Query the database for specified value of a created device node.
.RB Needs " \-p " or " \-n " specified.
.br
Valid types are:
.BR name ", " symlink ", " mode " ," owner " , " group " or " path.
.TP
.BI \-p " sysfs_path"
Specify the sysfs path of the device to query.
.TP
.BI \-n " name"
Specify the name of the node for the device to query.
.TP
.B \-a
Print all
.BI SYSFS{ filename }
attributes along the device chain. Useful for for finding
unique attributes to compose a rule.
.RB Needs " \-p " specified.
.TP
.B \-d
Dump the whole database.
.TP
.B \-h
Print help text.
.SH "FILES"
.nf
/etc/udev/*  udev config files
.fi
.LP
.SH "SEE ALSO"
.BR udev (8)
.SH AUTHORS
.B udevinfo
was developed primarily by Kay Sievers <kay.sievers@vrfy.org>, with help
from others.