is there a way to find out the PCI bus number of an Ethernet interface or vice versa. I am looking to write a Bash/Python script which gives some thing like
pci_address = some_function(eth0)
where pci_address is
sys:bus:slot:function. How can these two elements be related to each other?