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