setpci 是 Linux/Unix 下的一个命令行工具,用来读取或修改 PCI(Peripheral Component Interconnect)设备的配置空间(configuration space),常用于硬件调试、驱动开发与底层诊断。(也常被视为 pciutils 工具集的一部分。)
/ˌsɛt ˌpiː siː aɪ/
I used setpci to check a PCI device’s vendor ID.
我用 setpci 查看了一个 PCI 设备的厂商 ID。
After updating the kernel, the engineer ran setpci with a specific bus:device.function address to inspect configuration registers and confirm the device was initialized correctly.
更新内核后,工程师用 setpci 针对特定的 bus:device.function 地址检查配置寄存器,以确认设备是否被正确初始化。
setpci 由 set(设置)+ PCI(外设互连标准 Peripheral Component Interconnect 的缩写)构成,字面意思就是“设置 PCI(配置)”。它的命名直接反映其用途:对 PCI 设备配置空间进行读取/写入。