I want to find which network adpter(pci-bus) is associated with which network interface. I tried using IRQ numaber. I can find IRQ number of netwrok adapter usig lspci command. I found the IRQ number of network interface using ioctl and ifrq struct. Since multiple network adapter can share IRQ, it didn't worked properly.

I found that using pci-bus device id i can find association network adapter and network interface. I want to know which struct will provide this value for the network interface. I am using ioctl.