vlib: retrieve the root bus of a given pci device 10/34310/2
authorRay Kinsella <mdr@ashroe.eu>
Tue, 2 Nov 2021 13:33:44 +0000 (13:33 +0000)
committerDamjan Marion <dmarion@me.com>
Tue, 2 Nov 2021 22:25:40 +0000 (22:25 +0000)
commit5714a49f14b93fc51185c6d37af101d24fc5dbd2
tree705eb6dca55d31bb563e1a210544dbf7c82ac239
parent6efe025ce58c092e513e1f7f10556a3fa394438d
vlib: retrieve the root bus of a given pci device

Added a function to parse sysfs, determine the root bus & domain of a given pci
device.

Type: improvement

Signed-off-by: Ray Kinsella <mdr@ashroe.eu>
Change-Id: I36778116ecaa2d591617450fe5ae0bdb46b4424b
src/vlib/linux/pci.c
src/vlib/pci/pci.c
src/vlib/pci/pci.h