]>
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 | 21 | .B udev_root |
31fd3403 KS |
22 | directory. When used in conjunction with a query for the node name or the |
23 | symlink names, the | |
e31474a1 | 24 | .B udev_root |
31fd3403 | 25 | will be prepended to query result. |
e31474a1 | 26 | .TP |
758f236f | 27 | .BI \-q " query_type" |
fc238cff KS |
28 | Query the database for specified value of a created device node or network |
29 | interface. | |
758f236f | 30 | .RB Needs " \-p " or " \-n " specified. |
01fc6768 | 31 | .br |
e31474a1 | 32 | Valid types are: |
2b41e68a | 33 | .BR name ", " symlink ", " path " or " all. |
e31474a1 | 34 | .TP |
758f236f | 35 | .BI \-p " sysfs_path" |
e31474a1 GKH |
36 | Specify the sysfs path of the device to query. |
37 | .TP | |
758f236f | 38 | .BI \-n " name" |
fc238cff KS |
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. | |
e31474a1 | 42 | .TP |
758f236f | 43 | .B \-a |
01fc6768 | 44 | Print all |
16378373 | 45 | .BI SYSFS{ filename } |
b86f56ff | 46 | attributes along the device chain. Useful for finding |
01fc6768 | 47 | unique attributes to compose a rule. |
758f236f | 48 | .RB Needs " \-p " specified. |
01fc6768 | 49 | .TP |
9fe1a96d KS |
50 | .B \-d |
51 | Print the relationship between the devpath and the node name for all devices | |
52 | currently available in the database. | |
53 | .TP | |
758f236f | 54 | .B \-h |
e31474a1 GKH |
55 | Print help text. |
56 | .SH "FILES" | |
57 | .nf | |
58 | /etc/udev/* udev config files | |
59 | .fi | |
60 | .LP | |
61 | .SH "SEE ALSO" | |
62 | .BR udev (8) | |
63 | .SH AUTHORS | |
64 | .B udevinfo | |
65 | was developed primarily by Kay Sievers <kay.sievers@vrfy.org>, with help | |
66 | from others. |