chiark / gitweb /
udevd: listen for netlink events
[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 or the
23 symlink names, the
24 .B udev_root
25 will be prepended to query result.
26 .TP
27 .BI \-q " query_type"
28 Query the database for specified value of a created device node or network
29 interface.
30 .RB Needs " \-p " or " \-n " specified.
31 .br
32 Valid types are:
33 .BR name ", " symlink ", " path " or " all.
34 .TP
35 .BI \-p " sysfs_path"
36 Specify the sysfs path of the device to query.
37 .TP
38 .BI \-n " name"
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.
42 .TP
43 .B \-a
44 Print all
45 .BI SYSFS{ filename }
46 attributes along the device chain. Useful for finding
47 unique attributes to compose a rule.
48 .RB Needs " \-p " specified.
49 .TP
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
54 .B \-h
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.