]>
Commit | Line | Data |
---|---|---|
7dae391f | 1 | .TH UDEVINFO 8 "January 2004" "" "Linux Administrator's Manual" |
e31474a1 GKH |
2 | .SH NAME |
3 | udevinfo \- retrieve information from udev | |
4 | .SH SYNOPSIS | |
5 | .B udevinfo | |
758f236f | 6 | .RI "[\-q " query_type " \-p " sysfs_path "] [\-drVh]" |
e31474a1 GKH |
7 | .SH "DESCRIPTION" |
8 | .B udevinfo | |
b86f56ff KS |
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 | |
e31474a1 | 12 | .B udev |
b86f56ff | 13 | rules. |
e31474a1 GKH |
14 | .SH "OPTIONS" |
15 | .TP | |
758f236f | 16 | .B \-V |
e31474a1 GKH |
17 | Print the version information. |
18 | .TP | |
758f236f | 19 | .B \-r |
b86f56ff | 20 | Print the |
e31474a1 GKH |
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 | |
758f236f | 26 | .BI \-q " query_type" |
fc238cff KS |
27 | Query the database for specified value of a created device node or network |
28 | interface. | |
758f236f | 29 | .RB Needs " \-p " or " \-n " specified. |
01fc6768 | 30 | .br |
e31474a1 | 31 | Valid types are: |
8ea84a8a | 32 | .BR name ", " symlink ", " mode " ," owner " , " group " , " path " or " all. |
e31474a1 | 33 | .TP |
758f236f | 34 | .BI \-p " sysfs_path" |
e31474a1 GKH |
35 | Specify the sysfs path of the device to query. |
36 | .TP | |
758f236f | 37 | .BI \-n " name" |
fc238cff KS |
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. | |
e31474a1 | 41 | .TP |
758f236f | 42 | .B \-a |
01fc6768 | 43 | Print all |
16378373 | 44 | .BI SYSFS{ filename } |
b86f56ff | 45 | attributes along the device chain. Useful for finding |
01fc6768 | 46 | unique attributes to compose a rule. |
758f236f | 47 | .RB Needs " \-p " specified. |
01fc6768 | 48 | .TP |
758f236f | 49 | .B \-d |
e31474a1 GKH |
50 | Dump the whole database. |
51 | .TP | |
758f236f | 52 | .B \-h |
e31474a1 GKH |
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. |