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