man-pages/man1/usb-devices.1.html
2021-03-31 01:06:50 +01:00

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">&nbsp;</A>
<H2>NAME</H2>
usb-devices - print USB device details
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>usb-devices</B>
<P>
<A NAME="lbAD">&nbsp;</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 &quot;*&quot; 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">&nbsp;</A>
<H2>RETURN VALUE</H2>
If sysfs is not mounted, a non-zero exit code is returned.
<P>
<A NAME="lbAF">&nbsp;</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">&nbsp;</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">&nbsp;</A>
<H2>AUTHORS</H2>
Greg Kroah-Hartman &lt;<A HREF="mailto:greg@kroah.com">greg@kroah.com</A>&gt;
<P>
Randy Dunlap &lt;<A HREF="mailto:rdunlap@xenotime.net">rdunlap@xenotime.net</A>&gt;
<P>
Frans Pop &lt;<A HREF="mailto:elendil@planet.nl">elendil@planet.nl</A>&gt;
<P>
<HR>
<A NAME="index">&nbsp;</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>