第一,规则lscpi
lspci | grep Non-Volatile
03:00.0 Non-Volatile memory controller ...它被解释为(域0)、总线03、设备00、函数0。
dmidecode的相关部分:
dmidecode -t slot
Handle 0x0026, DMI type 9, 17 bytes
System Slot Information
Designation: PCIE3
Type: x16 PCI Express 3 x16
Current Usage: In Use
Length: Long
Characteristics:
3.3 V is provided
Opening is shared
PME signal is supported
Bus Address: 0000:03:02.0显示域0,总线3,设备2,函数0。
现在,在那里有一座桥,从lspci树中可以看到:
lspci -tv | grep -C 3 Non-Volatile
\-[0000:00]-+-00.0 Intel Corporation Xeon E5/Core i7 DMI2
+-01.0-[01]--
+-01.1-[02]--
+-02.0-[03]----00.0 Non-Volatile memory controller ...桥是总线0上的设备2,但是dmidecode认为插槽是3总线上的设备2有点奇怪。
发布于 2016-08-30 20:43:02
man dmidecode说
...
dmidecode is a tool for dumping a computer's DMI (some say
SMBIOS) table contents in a human-readable format.
...
While this is a good point in terms of report speed and safeness,
this also makes the presented information possibly unreliable.
...Linux内核知道它使用的地址。所以我会依赖sysfs和lspci。
https://unix.stackexchange.com/questions/306759
复制相似问题