lspci 是一种实用工具,用于显示系统和设备中的PCI总线的信息。


lspci [options]


  • lspci 是一种实用工具,用于显示系统和设备中的PCI总线的信息。
  • 默认情况下,它显示一个简短的设备列表。使用下面描述的选项来请求更详细的输出或用于其他程序解析的输出。
  • If you are going to report bugs in PCI device drivers or in lspci itself, please include output of “lspci -vvx” or even better “lspci -vvxxx” (however, see below for possible caveats).
  • Some parts of the output, especially in the highly verbose modes, are probably intelligible only to experienced PCI hackers. For exact definitions of the fields, please consult either the PCI spec‐ifications or the header.h and /usr/include/linux/pci.h include files.
  • Access to some parts of the PCI configuration space is restricted to root on many operating systems, so the features of lspci available to normal users are limited.
  • However, lspci tries its best to display as much as available and mark all other information with text.


  • 基本显示模式 Basic display modes








  • 显示选项 Display options

  • control resolving ID’s to names (控制解析ID的名称)

  • selection of devices 筛选设备

  • Other options 其他

PCI access options

  • PCI实用程序使用PCI库与PCI设备对话(参见pcilib(7))。可以使用以下选项来影响其行为:


  • If you intend to process the output of lspci automatically, please use one of the machine-readable output formats (-m, -vm, -vmm) described in this section.
  • All other formats are likely to change between versions of lspci.
  • All numbers are always printed in hexadecimal. If you want to process numeric ID’s instead of names, please add the -n switch.

Simple format (-m) 简单格式

  • In the simple format, each device is described on a single line,
  • which is formatted as parameters suitable for passing to a shell script, i.e., values separated by whitespaces, quoted and escaped if necessary.
  • Some of the arguments are positional: slot, class, vendor name, device name, subsystem vendor name and subsystem name (the last two are empty if the device has no subsystem);
  • the remaining arguments are option-like:

-rrev Revision number.

-pprogif Programming interface.

  • The relative order of positional arguments and options is undefined.
  • New options can be added in future versions, but they will always have a single argument not separated from the option by any spaces, so they can be easily ignored if not recognized.

Verbose format (-vmm)

  • The verbose output is a sequence of records separated by blank lines.
  • Each record describes a single device by a sequence of lines, each line containing a single `tag: value’ pair. The tag and the value are separated by a single tab character.
  • Neither the records nor the lines within a record are in any particular order.
  • Tags are case-sensitive.
  • The following tags are defined:

Backward-compatible verbose format (-vm)

  • In this mode, lspci tries to be perfectly compatible with its old versions.
  • It’s almost the same as the regular verbose format, but the Device tag is used for both the slot and the device name,
  • so it occurs twice in a single record. Please avoid using this format in any new code.









  • setpci(8), update-pciids(8), pcilib(7)


  • -s 仅列出指定的 PCI 设备,已总线为 目标

  • 查看指定设备的更加详细信息