本文介绍了在Linux中,是否有办法找出哪个PCI卡插入了哪个PCI插槽?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Linux中,是否有办法找出哪个PCI卡插入了哪个PCI插槽?
In Linux, is there a way to find out which PCI card is plugged into which PCI slot?
/sys/bus/pci/devices/包含许多不是卡的设备(网桥,CPU通道等),我无法在设备目录中找到有关插槽卡映射的任何信息.
/sys/bus/pci/devices/ contains many devices (bridges, CPU channels, etc.) that are not cards and I was not able to find any information about slot-card mappings in the device directories.
推荐答案
您可以使用
dmidecode –t slot
查找所有可用的PCI插槽比你可以运行的
to find all available pci slotsthan you can run
lspci -s <slot number>
命令列出连接到指定插槽的设备.您必须从第一个命令获取总线地址,并在第二个命令中将此地址用作参数.
command to list device connected to specified slot. You must take bus address from first command and use this address as parameter in second command.
这篇关于在Linux中,是否有办法找出哪个PCI卡插入了哪个PCI插槽?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!