2019-07-04 16:30:43 +08:00
|
|
|
|
# Lspci 命令常用参数
|
|
|
|
|
|
|
|
|
|
显示 BDF、Device ID 和 Vendor ID:
|
|
|
|
|
|
2021-11-28 16:41:42 +08:00
|
|
|
|
```bash
|
|
|
|
|
lspci -n
|
|
|
|
|
```
|
2019-07-04 16:30:43 +08:00
|
|
|
|
|
|
|
|
|
显示与之关联的 Kernel driver:
|
|
|
|
|
|
2021-11-28 16:41:42 +08:00
|
|
|
|
```bash
|
|
|
|
|
lspci -k
|
|
|
|
|
```
|
2019-07-04 16:30:43 +08:00
|
|
|
|
|
|
|
|
|
现实详细信息:
|
|
|
|
|
|
2021-11-28 16:41:42 +08:00
|
|
|
|
```bash
|
|
|
|
|
lspci -v
|
|
|
|
|
```
|
2019-07-04 16:30:43 +08:00
|
|
|
|
|
|
|
|
|
Dump 标准配置空间:
|
|
|
|
|
|
2021-11-28 16:41:42 +08:00
|
|
|
|
```bash
|
|
|
|
|
lspci -x
|
|
|
|
|
```
|
2019-07-04 16:30:43 +08:00
|
|
|
|
|
|
|
|
|
Dump 全部配置空间:
|
|
|
|
|
|
2021-11-28 16:41:42 +08:00
|
|
|
|
```bash
|
|
|
|
|
lspci -xxx
|
|
|
|
|
```
|
2019-07-04 16:30:43 +08:00
|
|
|
|
|
|
|
|
|
Dump 4K 扩展配置空间:
|
|
|
|
|
|
2021-11-28 16:41:42 +08:00
|
|
|
|
```bash
|
|
|
|
|
lspci -xxxx
|
|
|
|
|
```
|
2019-07-04 16:30:43 +08:00
|
|
|
|
|
|
|
|
|
显示总线树形图:
|
|
|
|
|
|
2021-11-28 16:41:42 +08:00
|
|
|
|
```bash
|
|
|
|
|
lspci -t
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
指明一个 PCI 设备,来查看其配置空间的内容:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
lspci -s <总线号>:<设备号>.<功能号> -xxx
|
|
|
|
|
```
|