1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-04 22:21:55 +03:00
systemd/udevinfo.8

83 lines
2.0 KiB
Groff
Raw Normal View History

.\" Title: udevinfo
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/>
.\" Date: August 2005
.\" Manual: udevinfo
.\" Source: udev
.\"
.TH "UDEVINFO" "8" "August 2005" "udev" "udevinfo"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
udevinfo \- query udev device information
.SH "SYNOPSIS"
.HP 9
\fBudevinfo\fR [\fB\-\-query=\fR\fB\fIquery\-type\fR\fR] [\fB\-\-path=\fR\fB\fIdevpath\fR\fR] [\fB\-\-name=\fR\fB\fInode\fR\fR] [\fB\-\-root\fR] [\fB\-\-attribute\-walk\fR] [\fB\-\-export\-db\fR] [\fB\-\-version\fR] [\fB\-\-help\fR]
.SH "DESCRIPTION"
.PP
udevinfo queries the udev database for device information stored in the udev database. It can also query the properties of a device from its sysfs representation to help creating udev rules that match this device.
.SH "OPTIONS"
.PP
2006-09-03 06:05:20 +04:00
\fB\-\-query=\fR\fB\fItype\fR\fR
2006-11-27 12:30:17 +03:00
.RS 4
Query the database for specified type of device data. It needs the
2006-09-03 06:05:20 +04:00
\fB\-\-path\fR
or
2006-09-03 06:05:20 +04:00
\fB\-\-name\fR
to identify the specified device. Valid queries are:
\fBname\fR,
\fBsymlink\fR,
\fBpath\fR,
\fBenv\fR,
\fBall\fR.
.RE
.PP
2006-09-03 06:05:20 +04:00
\fB\-\-path=\fR\fB\fIdevpath\fR\fR
2006-11-27 12:30:17 +03:00
.RS 4
The devpath of the device to query.
.RE
.PP
2006-09-03 06:05:20 +04:00
\fB\-\-name=\fR\fB\fInode\fR\fR
2006-11-27 12:30:17 +03:00
.RS 4
The name of the device node or a symlink to query
.RE
.PP
2006-09-03 06:05:20 +04:00
\fB\-\-root\fR
2006-11-27 12:30:17 +03:00
.RS 4
The udev root directory:
\fI/dev\fR. If used in conjunction with a
\fBname\fR
or
\fBsymlink\fR
2006-09-03 06:05:20 +04:00
query, the query returns the absolute path including the root directory.
.RE
.PP
2006-09-03 06:05:20 +04:00
\fB\-\-attribute\-walk\fR
2006-11-27 12:30:17 +03:00
.RS 4
2006-09-03 06:05:20 +04:00
Print all sysfs properties of the specified device that can be used in udev rules to match the specified device. It prints all devices along the chain, up to the root of sysfs that can be used in udev rules.
.RE
.PP
\fB\-\-export\-db\fR
2006-11-27 12:30:17 +03:00
.RS 4
Export the content of the udev database.
.RE
.PP
\fB\-\-version\fR
.RS 4
Print version.
.RE
.PP
2006-09-03 06:05:20 +04:00
\fB\-\-help\fR
2006-11-27 12:30:17 +03:00
.RS 4
Print help text.
.RE
.SH "AUTHOR"
.PP
Written by Kay Sievers
<kay.sievers@vrfy.org>.
.SH "SEE ALSO"
.PP
\fBudev\fR(7)