]> git.ipfire.org Git - thirdparty/pciutils.git/commit
Display physical slot information in lspci -v
authorAlex Chiang <achiang@hp.com>
Wed, 3 Dec 2008 19:30:21 +0000 (12:30 -0700)
committerMartin Mares <mj@ucw.cz>
Fri, 12 Dec 2008 23:13:15 +0000 (00:13 +0100)
commit2849a16541917b641d861bac8dfadd1056231c12
treeb01d9fa4637b8a29a8063d7fc2f702e98e84384b
parent1d03d3414810f1d1f114e037a0f9b4ba2c993dea
Display physical slot information in lspci -v

We've been exposing slot information in /sys/bus/pci/slots for a
long time now (as long as a hotplug driver or slot detection
driver like pci_slot is loaded).

Let's make life better for our users and display that information
in lspci. If slot entries appear in /sys/bus/pci/slots/,
correlate them to PCI devices, and display the information when
lspci -v is issued.

If no slot entries appear in sysfs (due to no modules loaded), do
nothing.

Now you'll see sample output like the following:

23:01.1 Class 0c04: Device 10df:fd00 (rev 01)
Subsystem: Device 10df:fd00
Physical Slot: 3
Flags: bus master, 66MHz, medium devsel, latency 248, IRQ 60
...

Signed-off-by: Alex Chiang <achiang@hp.com>
lib/access.c
lib/pci.h
lib/sysfs.c
lspci.c
lspci.man