chiark / gitweb /
use more efficient string copying
[elogind.git] / extras / usb_id / usb_id.8
1 .TH USB_ID 8 "January 2009" "" "Linux Administrator's Manual"
2 .SH NAME
3 usb_id \- udev callout to read information from USB devices
4 .SH SYNOPSIS
5 .B usb_id
6 [\fB--usb-info\fP] [\fB--num-info\fP] [\fB--export\fP] [\fB--debug\fP]
7 .I devpath
8 .br
9 .B usb_id --help
10 .SH "DESCRIPTION"
11 .B usb_id
12 is normally called from a udev rule, to provide udev with a unique string and
13 additional information (uuid, label) for a USB device. Udev can use this
14 information to create symlinks in /dev to the real device node.
15 .SH USAGE
16 .B usb_id \fIdevpath\fP
17 opens the device node specified at the commandline and prints the
18 information chosen by the options.
19 .SH OPTIONS
20 The following commandline switches are supported to specify what usb_id
21 should print:
22 .TP
23 .B -u, --usb-info
24 print USB strings instead of, e.g. SCSI strings for a mass storage device
25 .TP
26 .B -n, --num-info
27 print numerical values instead of strings. Implies \fB--usb-info\fP.
28 .TP
29 .B -x, --export
30 print values as environment keys
31 .TP
32 .B -h, --help
33 print usage help
34 .RE
35 .SH SEE ALSO
36 .BR udev (7)
37 .SH AUTHORS
38 Developed by Hannes Reinecke <hare@suse.de>.