Dan Nicholson <dbn.lists <at> gmail.com> writes:

> Maybe
> Alexander knows better. Here's one way to do it.
> 
> $ ls -l /sys/class/net/*/device
> lrwxrwxrwx 1 root root 0 2006-08-29 06:50 /sys/class/net/eth0/device
> -> ../../../devices/pci0000:00/0000:00:0f.0
> 
> $ udevinfo -a -p /class/net/eth0
...> 
>   looking at parent device '/devices/pci0000:00/0000:00:0f.0':
>     ID=="0000:00:0f.0"
>     BUS=="pci"
>     DRIVER=="sundance"
>     SYSFS{modalias}=="pci:v00001186d00001002sv00001186sd00001002bc02sc00i00"
>     SYSFS{local_cpus}=="1"
>     SYSFS{irq}=="10"
>     SYSFS{class}=="0x020000"
>     SYSFS{subsystem_device}=="0x1002"
>     SYSFS{subsystem_vendor}=="0x1186"
>     SYSFS{device}=="0x1002"
>     SYSFS{vendor}=="0x1186"

> What do you think, Peter?

This looks like the right incantation. I could not work
it out from gregkh info of Dec 2004.
It seems that eth0 and eth1 are most common so it makes
sense to use as the basis of an example.

I will run this on my system tomorrow.

Thanks,

Peter


-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to