chiark / gitweb /
[PATCH] Add Red Hat rules and permissions files
[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 of the devices
10 currently present in the system.  It also provides a way to query any device
11 in the sysfs tree to help in creating
12 .B udev
13 rule files.
14 .SH "OPTIONS"
15 .TP
16 .B \-V
17 Print the version information.
18 .TP
19 .B \-r
20 Print the 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 .TP
39 .B \-a
40 Print all
41 .BI SYSFS{ filename }
42 attributes along the device chain. Useful for for finding
43 unique attributes to compose a rule.
44 .RB Needs " \-p " specified.
45 .TP
46 .B \-d
47 Dump the whole database.
48 .TP
49 .B \-h
50 Print help text.
51 .SH "FILES"
52 .nf
53 /etc/udev/*  udev config files
54 .fi
55 .LP
56 .SH "SEE ALSO"
57 .BR udev (8)
58 .SH AUTHORS
59 .B udevinfo
60 was developed primarily by Kay Sievers <kay.sievers@vrfy.org>, with help
61 from others.