2004-02-18 09:17:50 +07:00
|
|
|
.TH UDEVINFO 8 "January 2004" "" "Linux Administrator's Manual"
|
2004-01-27 10:56:19 +07:00
|
|
|
.SH NAME
|
|
|
|
udevinfo \- retrieve information from udev
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B udevinfo
|
2004-03-02 13:34:10 +07:00
|
|
|
.RI "[\-q " query_type " \-p " sysfs_path "] [\-drVh]"
|
2004-01-27 10:56:19 +07:00
|
|
|
.SH "DESCRIPTION"
|
|
|
|
.B udevinfo
|
2004-03-10 10:50:30 +07:00
|
|
|
allows users to query the udev database for information on any device
|
|
|
|
currently present on the system. It also provides a way to query any device
|
|
|
|
in the sysfs tree to help creating
|
2004-01-27 10:56:19 +07:00
|
|
|
.B udev
|
2004-03-10 10:50:30 +07:00
|
|
|
rules.
|
2004-01-27 10:56:19 +07:00
|
|
|
.SH "OPTIONS"
|
|
|
|
.TP
|
2004-03-02 13:34:10 +07:00
|
|
|
.B \-V
|
2004-01-27 10:56:19 +07:00
|
|
|
Print the version information.
|
|
|
|
.TP
|
2004-03-02 13:34:10 +07:00
|
|
|
.B \-r
|
2004-03-10 10:50:30 +07:00
|
|
|
Print the
|
2004-01-27 10:56:19 +07:00
|
|
|
.B udev_root
|
|
|
|
directory. When used in conjunction with a query for the node name, the
|
|
|
|
.B udev_root
|
|
|
|
will be prepended.
|
|
|
|
.TP
|
2004-03-02 13:34:10 +07:00
|
|
|
.BI \-q " query_type"
|
2004-04-02 13:59:56 +07:00
|
|
|
Query the database for specified value of a created device node or network
|
|
|
|
interface.
|
2004-03-02 13:34:10 +07:00
|
|
|
.RB Needs " \-p " or " \-n " specified.
|
2004-01-27 15:40:14 +07:00
|
|
|
.br
|
2004-01-27 10:56:19 +07:00
|
|
|
Valid types are:
|
2004-03-02 14:47:59 +07:00
|
|
|
.BR name ", " symlink ", " mode " ," owner " , " group " , " path " or " all.
|
2004-01-27 10:56:19 +07:00
|
|
|
.TP
|
2004-03-02 13:34:10 +07:00
|
|
|
.BI \-p " sysfs_path"
|
2004-01-27 10:56:19 +07:00
|
|
|
Specify the sysfs path of the device to query.
|
|
|
|
.TP
|
2004-03-02 13:34:10 +07:00
|
|
|
.BI \-n " name"
|
2004-04-02 13:59:56 +07:00
|
|
|
Specify the name of the node, the symlink or the network interface for the
|
|
|
|
device to query. Partition names generated with the NAME{all_partitons} option
|
|
|
|
can not be queried, the main device must be used instead.
|
2004-01-27 10:56:19 +07:00
|
|
|
.TP
|
2004-03-02 13:34:10 +07:00
|
|
|
.B \-a
|
2004-01-27 15:40:14 +07:00
|
|
|
Print all
|
2004-02-17 16:27:01 +07:00
|
|
|
.BI SYSFS{ filename }
|
2004-03-10 10:50:30 +07:00
|
|
|
attributes along the device chain. Useful for finding
|
2004-01-27 15:40:14 +07:00
|
|
|
unique attributes to compose a rule.
|
2004-03-02 13:34:10 +07:00
|
|
|
.RB Needs " \-p " specified.
|
2004-01-27 15:40:14 +07:00
|
|
|
.TP
|
2004-03-02 13:34:10 +07:00
|
|
|
.B \-d
|
2004-01-27 10:56:19 +07:00
|
|
|
Dump the whole database.
|
|
|
|
.TP
|
2004-03-02 13:34:10 +07:00
|
|
|
.B \-h
|
2004-01-27 10:56:19 +07:00
|
|
|
Print help text.
|
|
|
|
.SH "FILES"
|
|
|
|
.nf
|
|
|
|
/etc/udev/* udev config files
|
|
|
|
.fi
|
|
|
|
.LP
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR udev (8)
|
|
|
|
.SH AUTHORS
|
|
|
|
.B udevinfo
|
|
|
|
was developed primarily by Kay Sievers <kay.sievers@vrfy.org>, with help
|
|
|
|
from others.
|