Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pcimodules(8) [linux man page]

pcimodules(8)							Linux PCI Utilities						     pcimodules(8)

NAME
pcimodules - List kernel driver modules available for all currently plugged in PCI devices SYNOPSIS
pcimodules [--classclass_id] [--classmaskmask] [--help] DESCRIPTION
pcimodules lists all driver modules for all currently plugged in PCI devices. pcimodules should be run at boot time, and whenever a PCI device is "hot plugged" into the system. This can be done by the following Bourne shell syntax: for module in $(pcimodules) ; do modprobe -s -k "$module" done When a PCI device is removed from the system, the Linux kernel will decrement a usage count on PCI driver module. If this count drops to zero (i.e., there are no PCI drivers), then the modprobe -r process that is normally configured to run from cron every few minutes will eventually remove the unneeded module. The --class and --classmask arguments can be used to limit the search to certain classes of PCI devices. This is useful, for example, to generate a list of ethernet card drivers to be loaded when the kernel has indicated that it is trying to resolve an unknown network inter- face. Modules are listed in the order in which the PCI devices are physically arranged so that the computer owner can arrange things like having scsi device 0 be on a controller that is not alphabetically the first scsi controller. OPTIONS
--class class --classmask mask --class and --classmask limit the search to PCI cards in particular classes. These arguments are always used together. The arguments to --class and --classmask can be given as hexadecimal numbers by prefixing a leading "0x". Note that the classes used by pcimodules are in "Linux" format, meaning the class value that you see with lspci would be shifted left eight bits, with the new low eight bits programming interface ID. An examples of how to use class and classmask is provided below. --help, -h Print a help message and exit. EXAMPLES
pcimodules lists all modules corresponding to currently plugged in PCI devices. pcimodules --class 0x20000 --classmask 0xffff00 lists all modules corresponding to currently plugged in ethernet PCI devices. FILES
/lib/modules/<kernel-version>/modules.pcimap This file is automatically generated by depmod, and used by pcimodules to determine which modules correspond to which PCI ID's. /proc/bus/pci An interface to PCI bus configuration space provided by the post-2.1.82 Linux kernels. Contains per-bus subdirectories with per-card config space files and a devices file containing a list of all PCI devices. SEE ALSO
lspci(8) MAINTAINER
The Linux PCI Utilities are maintained by Martin Mares <mj@suse.cz>. AUTHOR
pcimodules was written by Adam J. Richter <adam@yggdrasil.com>, based on public domain example code by Martin Mares <mj@suse.cz>. COPYRIGHT
pcimodules is copyright 2000, Yggdrasil Computing, Incorporated, and may be copied under the terms and conditions of version 2 of the GNU General Public License as published by the Free Software Foundation (Cambridge, Massachusetts, United States of America). pciutils-3.1.7 31 January 2010 pcimodules(8)

Check Out this Related Man Page

pcilib(7)							 The PCI Utilities							 pcilib(7)

NAME
pcilib - a library for accessing PCI devices DESCRIPTION
The PCI library (also known as pcilib and libpci) is a portable library for accessing PCI devices and their configuration space. ACCESS METHODS
The library supports a variety of methods to access the configuration space on different operating systems. By default, the first matching method in this list is used, but you can specify override the decision (see the -A switch of lspci). linux-sysfs The /sys filesystem on Linux 2.6 and newer. The standard header of the config space is available to all users, the rest only to root. Supports extended configuration space, PCI domains, VPD (from Linux 2.6.26), physical slots (also since Linux 2.6.26) and information on attached kernel drivers. linux-proc The /proc/bus/pci interface supported by Linux 2.1 and newer. The standard header of the config space is available to all users, the rest only to root. intel-conf1 Direct hardware access via Intel configuration mechanism 1. Available on i386 and compatibles on Linux, Solaris/x86, GNU Hurd, Win- dows, BeOS and Haiku. Requires root privileges. intel-conf2 Direct hardware access via Intel configuration mechanism 2. Available on i386 and compatibles on Linux, Solaris/x86, GNU Hurd, Win- dows, BeOS and Haiku. Requires root privileges. Warning: This method is able to address only the first 16 devices on any bus and it seems to be very unreliable in many cases. fbsd-device The /dev/pci device on FreeBSD. Requires root privileges. aix-device Access method used on AIX. Requires root privileges. nbsd-libpci The /dev/pci0 device on NetBSD accessed using the local libpci library. obsd-device The /dev/pci device on OpenBSD. Requires root privileges. dump Read the contents of configuration registers from a file specified in the dump.name parameter. The format corresponds to the output of lspci -x. darwin Access method used on Mac OS X / Darwin. Must be run as root and the system must have been booted with debug=0x144. PARAMETERS
The library is controlled by several parameters. They should have sensible default values, but in case you want to do something unusual (or even something weird), you can override them (see the -O switch of lspci). Parameters of specific access methods dump.name Name of the bus dump file to read from. fbsd.path Path to the FreeBSD PCI device. nbsd.path Path to the NetBSD PCI device. obsd.path Path to the OpenBSD PCI device. proc.path Path to the procfs bus tree. sysfs.path Path to the sysfs device tree. Parameters for resolving of ID's via DNS net.domain DNS domain containing the ID database. net.cache_name Name of the file used for caching of resolved ID's. Parameters for resolving of ID's via UDEV's HWDB hwdb.disable Disable use of HWDB if set to a non-zero value. SEE ALSO
lspci(8), setpci(8), update-pciids(8) AUTHOR
The PCI Utilities are maintained by Martin Mares <mj@ucw.cz>. pciutils-3.5.2 03 October 2016 pcilib(7)
Man Page