104 lines
2.8 KiB
HTML
104 lines
2.8 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of usb-devices</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>usb-devices</H1>
|
|
Section: Linux USB Utilities (1)<BR>Updated: 23 June 2009<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="ixAAB"></A>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
usb-devices - print USB device details
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>usb-devices</B>
|
|
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>usb-devices</B>
|
|
|
|
is a (bash) shell script that can be used to display details of USB
|
|
buses in the system and the devices connected to them.
|
|
<P>
|
|
The output of the script is similar to the <I>usb/devices</I> file
|
|
available either under <I>/proc/bus</I> (if usbfs is mounted), or under
|
|
<I>/sys/kernel/debug</I> (if debugfs is mounted there). The script is
|
|
primarily intended to be used if the file is not available.
|
|
<P>
|
|
In contrast to the <I>usb/devices</I> file, this script only lists
|
|
<I>active</I> interfaces (those marked with a "*" in the <I>usb/devices</I>
|
|
file) and their endpoints.
|
|
<P>
|
|
Be advised that there can be differences in the way information is sorted,
|
|
as well as in the format of the output.
|
|
<P>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>RETURN VALUE</H2>
|
|
|
|
If sysfs is not mounted, a non-zero exit code is returned.
|
|
<P>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>/sys/bus/usb/devices/usb*</B>
|
|
|
|
<DD>
|
|
The part of the sysfs tree the script walks through to assemble the
|
|
printed information.
|
|
<DT id="2"><B>/proc/bus/usb/devices</B>
|
|
|
|
<DD>
|
|
Location where the <I>usb/devices</I> file can normally be found for
|
|
Linux kernels before 2.6.31, if usbfs is mounted.
|
|
<DT id="3"><B>/sys/kernel/debug/usb/devices</B>
|
|
|
|
<DD>
|
|
Location where the <I>usb/devices</I> file can normally be found for
|
|
Linux kernel 2.6.31 and later, if debugfs is mounted.
|
|
<P>
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+lsusb">lsusb</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+usbview">usbview</A></B>(8).
|
|
|
|
<P>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>AUTHORS</H2>
|
|
|
|
Greg Kroah-Hartman <<A HREF="mailto:greg@kroah.com">greg@kroah.com</A>>
|
|
<P>
|
|
|
|
Randy Dunlap <<A HREF="mailto:rdunlap@xenotime.net">rdunlap@xenotime.net</A>>
|
|
<P>
|
|
|
|
Frans Pop <<A HREF="mailto:elendil@planet.nl">elendil@planet.nl</A>>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="4"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="5"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="6"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="7"><A HREF="#lbAE">RETURN VALUE</A><DD>
|
|
<DT id="8"><A HREF="#lbAF">FILES</A><DD>
|
|
<DT id="9"><A HREF="#lbAG">SEE ALSO</A><DD>
|
|
<DT id="10"><A HREF="#lbAH">AUTHORS</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:29 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|