chiark / gitweb /
[PATCH] 030 release
[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, the
23 .B udev_root
24 will be prepended.
25 .TP
26 .BI \-q " query_type"
27 Query the database for specified value of a created device node or network
28 interface.
29 .RB Needs " \-p " or " \-n " specified.
30 .br
31 Valid types are:
32 .BR name ", " symlink ", " mode " ," owner " , " group " , " path " or " all.
33 .TP
34 .BI \-p " sysfs_path"
35 Specify the sysfs path of the device to query.
36 .TP
37 .BI \-n " name"
38 Specify the name of the node, the symlink or the network interface for the
39 device to query. Partition names generated with the NAME{all_partitons} option
40 can not be queried, the main device must be used instead.
41 .TP
42 .B \-a
43 Print all
44 .BI SYSFS{ filename }
45 attributes along the device chain. Useful for finding
46 unique attributes to compose a rule.
47 .RB Needs " \-p " specified.
48 .TP
49 .B \-d
50 Dump the whole database.
51 .TP
52 .B \-h
53 Print help text.
54 .SH "FILES"
55 .nf
56 /etc/udev/*  udev config files
57 .fi
58 .LP
59 .SH "SEE ALSO"
60 .BR udev (8)
61 .SH AUTHORS
62 .B udevinfo
63 was developed primarily by Kay Sievers <kay.sievers@vrfy.org>, with help
64 from others.