Skip to contentSkip to conversation

Linking interfaces to slots

DISCUSSION Steve Modica 2 participants 2 messages Oct 3, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi All,

If one wanted to figure out which ethX was in which PCI slot on which bus, what would be the most acceptable mechanism? The drivers have access to all this info, but then each driver would need some ioctl added. Is there some more generic place in the kernel that could be modified such that /proc/net/dev could hold this information?

Steve

#1 lore raw
Quoted 2 lines · Steve Modica

If one wanted to figure out which ethX was in which PCI slot on which bus, what would be the most acceptable mechanism? The drivers have access to all this info, but then each driver would need some ioctl added. Is there some more generic place in the kernel that could be modified such that /proc/net/dev could hold this information?

On 2.6 there's /sys/class/net/ethX/device,
and ethtool_drvinfo.bus_info support should exist too...

- Dave