FWIW you can just use ethtool to determine the slot address quickly in userspace.
There's no real need to do this in the kernel.
# ethtool -i eth0
driver: e1000e
version: 0.2.0
firmware-version: 1.3-0
bus-info: 0000:00:19.0
if you really want to make this structured, then a hal plugin seems a logical
place to implement this, since it already does device renaming. Having aliases
seems to be a bit of a nightmare and might confuse a lot of userspace
programs/scripts.
Auke
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html