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