What do the different /proc/bus/pci/0x directories represent?

4

What do the different /proc/bus/pci/0x directories represent?

Do they represent the different PCI/PCI-E sockets on a board?

If I have one mini pci and 2 PCI-E sockets on my board, should I be seeing 3 different '0x' directories under "/proc/bus/pci"?

freethinker

Posted 2011-07-12T12:59:07.940

Reputation: 3 160

The /proc directory usually stores volatile files used by processes. That just might be a file used by a process that interfaces with your pci slot. Just a guess. – n0pe – 2011-07-12T13:12:59.973

Answers

0

Answer from a friend - They represent PCI/PCI-E bridges present in the system. Usually each PCI slot is connected to a bridge - so it should show up in /proc/bus/pci. But its likely that /proc/bus/pci has more directories than PCI slots you can see

freethinker

Posted 2011-07-12T12:59:07.940

Reputation: 3 160

2

Yes, that maps to your hardware, it exposes the PCI system data. But that interface is deprecated in favor of the /sys interface.

But you really should use the lspci command to find out about your devices, and not read those files directly.

Keith

Posted 2011-07-12T12:59:07.940

Reputation: 7 263