OS Manuals

/usr/bin/lspci

PCI bus configuration space access library and tools

From pciutils 3.10.0-r45 (os), captured 2026-11-07 by running lspci --help (exit 1). permalink

/usr/bin/lspci: invalid option -- '-'
Usage: lspci [<switches>]

Basic display modes:
-mm		Produce machine-readable output (single -m for an obsolete format)
-t		Show bus tree

Display options:
-v		Be verbose (-vv or -vvv for higher verbosity)
-k		Show kernel drivers handling each device
-x		Show hex-dump of the standard part of the config space
-xxx		Show hex-dump of the whole config space (dangerous; root only)
-xxxx		Show hex-dump of the 4096-byte extended config space (root only)
-b		Bus-centric view (addresses and IRQ's as seen by the bus)
-D		Always show domain numbers
-P		Display bridge path in addition to bus and device number
-PP		Display bus path in addition to bus and device number

Resolving of device ID's to names:
-n		Show numeric ID's
-nn		Show both textual and numeric ID's (names & numbers)
-q		Query the PCI ID database for unknown ID's via DNS
-qq		As above, but re-query locally cached entries
-Q		Query the PCI ID database for all ID's via DNS

Selection of devices:
-s [[[[<domain>]:]<bus>]:][<slot>][.[<func>]]	Show only devices in selected slots
-d [<vendor>]:[<device>][:<class>]		Show only devices with specified ID's

Other options:
-i <file>	Use specified ID database instead of /usr/share/hwdata/pci.ids
-p <file>	Look up kernel modules in a given file instead of default modules.pcimap
-M		Enable `bus mapping' mode (dangerous; root only)

PCI access options:
-A <method>	Use the specified PCI access method (see `-A help' for a list)
-O <par>=<val>	Set PCI access parameter (see `-O help' for a list)
-G		Enable PCI access debugging
-H <mode>	Use direct hardware access (<mode> = 1 or 2)
-F <file>	Read PCI configuration dump from a given file
Options (32)
OptionDescriptionSource
-mmDump PCI device data in a machine readable form for easy parsing by scripts.help + man
-tShow a tree-like diagram containing all buses, bridges, devices and connections between them.help + man
-vBe verbose and display detailed information about all devices.help + man
-kShow kernel drivers handling each device and also kernel modules capable of handling it.help + man
-xShow hexadecimal dump of the standard part of the configuration space (the first 64 bytes or 128 bytes for CardBus bridges).help + man
-xxxShow hexadecimal dump of the whole PCI configuration space.help + man
-xxxxShow hexadecimal dump of the extended (4096-byte) PCI configuration space available on PCI-X 2.0 and PCI Express buses.help + man
-bBus-centric view (addresses and IRQ's as seen by the bus)help + man
-DAlways show PCI domain numbers.help + man
-PIdentify PCI devices by path through each bridge, instead of by bus number.help + man
-PPIdentify PCI devices by path through each bridge, showing the bus number as well as the device number.help + man
-nShow PCI vendor and device codes as numbers instead of looking them up in the PCI ID list.help + man
-nnShow PCI vendor and device codes as both numbers and names.help + man
-qUse DNS to query the central PCI ID database if a device is not found in the local pci.ids file.help + man
-qqAs above, but re-query locally cached entrieshelp + man
-QQuery the central database even for entries which are recognized locally.help + man
-s domain>]:]<bus>]:][<slot>][.[<funcShow only devices in selected slotshelp
-d vendor>]:[<device>][:<classShow only devices with specified ID'shelp
-i fileUse <file> as the PCI ID list instead of /usr/share/hwdata/pci.ids.help + man
-p fileLook up kernel modules in a given file instead of default modules.pcimaphelp + man
-MInvoke bus mapping mode which performs a thorough scan of all PCI devices, including those behind misconfigured bridges, etc.help + man
-A methodThe library supports a variety of methods to access the PCI hardware.help + man
-O par>=<valThe behavior of the library is controlled by several named parameters.help + man
-GIncrease debug level of the library.help + man
-H modeUse direct hardware access (<mode> = 1 or 2)help
-F fileInstead of accessing real hardware, read the list of devices and values of their configuration registers from the given file produced by an earlier run of lspci -x.help + man
-mDump PCI device data in a backward-compatible machine readable form. (in the manual page but not in --help)man
-vvBe very verbose and display more details. (in the manual page but not in --help)man
-vvvBe even more verbose and display everything we are able to parse, even if it doesn't look interesting at all (e.g., undefined memory regions). (in the manual page but not in --help)man
--versionShows lspci version. (in the manual page but not in --help)man
-H1Use direct hardware access via Intel configuration mechanism 1. (in the manual page but not in --help)man
-H2Use direct hardware access via Intel configuration mechanism 2. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.