Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Mercy Corps

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 65 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

usbmodules




SYNOPSIS

       usbmodules [--skipbroken] [--device /proc/bus/bus/NNN/NNN]
       [--showdriver  /proc/bus/bus/NNN/NNN] [--check modulename]
       [--help] [--mapfile pathname] [--version pathname]


DESCRIPTION

       usbmodules lists driver modules that may be able to manage
       interfaces  on  currently plugged in USB devices.  usbmod­
       ules may be used by /sbin/hotplug or  one  of  its  agents
       (normally  /etc/hotplug/usb.agent)  when  USB  devices are
       "hot plugged" into the system.  This can be  done  by  the
       following Bourne shell syntax:

                   for module in $(usbmodules --device $DEVICE) ;
              do

                        modprobe -s -k "$module"

                   done

       The DEVICE environment variable is passed from the  kernel
       to  /sbin/hotplug during USB hotplugging if the kernel was
       configured using usbdevfs.  usbmodules currently  requires
       usbdevfs to operate.

       When  a  USB  device is removed from the system, the Linux
       kernel will decrement a usage count on USB driver  module.
       If  this  count  drops to zero (i.e., there are no clients
       for the USB device driver), then the modprobe  -r  process
       that  is  normally  configured  to run from cron every few
       minutes will eventually remove the unneeded module.


OPTIONS

       --skipbroken
              Do not read  "/etc/usbmodules.blacklist.conf",  ask
              the  device  node  in /proc/bus/bus/NNN/NNN for the
              required driver. This will break some devices.

       --check modulename
              Instead of listing the relevant modules, just  exit
              with   code  0  (success)  if  the  given  module's
              exported  USB  ID  patterns  matches.    Otherwise,
              return  failure.  usbmodules emits no output either
              way.

       --showdriver /proc/bus/usb/MMM/NNN
              Show the active kernel driver name  for  the  usbfs
              device  node.  It  may return "(none)" if no loaded
              driver claimed the interface.

              built with.


FILES

       /lib/modules/<kernel-version>/modules.usbmap
              This file is  automatically  generated  by  depmod,
              versions 2.4.2 and later, and is used by usbmodules
              to determine which modules correspond to which  USB
              ID's.

       /proc/bus/usb
              An  optional  interface  to USB devices provided by
              Linux kernels with versions of the 2.4 USB support.
              Contains  per-bus  subdirectories  with  per-device
              files (offering a usermode driver API  as  well  as
              access  to device and configuration descriptors), a
              devices file containing a list of all USB  devices,
              and a drivers file listing USB device drivers known
              to the USB subsystem.

       /etc/usbmodules.blacklist.conf
              Some devices do not like the  poking  from  usbmod­
              ules,  you  will see timeouts in dmesg. To skip the
              usual poking, create a file  /etc/usbmodules.black­
              list.conf with the following format:

              driver vendor product

              vendor  and product must be in hex. Empty lines and
              lines with # and whitespaces will be ignored.


SEE ALSO

       lsusb(8), http://linux-hotplug.sourceforge.net


AUTHOR

       usbmodules   was    written    by    Adam    J.    Richter
       <adam@yggdrasil.com>,  and is based partly on lsusb, which
       was written by Thomas Sailer <sailer@ife.ee.ethz.ch>.


COPYRIGHT

       usbmodules is copyright 2000, Yggdrasil Computing,  Incor­
       porated,  and  copyright  1999, Thomas Sailer.  usbmodules
       may may be copied under the terms and conditions  of  ver­
       sion  2  of the GNU General Public License as published by
       the Free  Software  Foundation  (Cambrige,  Massachusetts,
       United States of America).

  




Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
The Linux Tutorial welcomes your suggestions and ideas.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds