Re: pci_domain_nr vs. /sys/devices

Olaf Hering (olh@suse.de)
Tue, 17 Jun 2003 20:39:29 +0200


On Tue, Jun 17, Matthew Wilcox wrote:

> ./drivers/net/3c59x.c: strcpy(info.bus_info, VORTEX_PCI(vp)->slot_name);

that one is for ethtool ioctl.
Is 'ethtool -i' obsolete in 2.6?
It seems sysfs has every info already.

olaf@smirnow:~/linux-2.5.72> l /sys/class/net/eth0/
total 0
drwxr-xr-x 3 root root 0 Jun 17 13:14 ./
drwxr-xr-x 4 root root 0 Jun 17 13:14 ../
-r--r--r-- 1 root root 4096 Jun 17 13:14 addr_len
-r--r--r-- 1 root root 4096 Jun 17 13:14 address
-r--r--r-- 1 root root 4096 Jun 17 13:14 broadcast
lrwxrwxrwx 1 root root 34 Jun 17 13:14 device -> ../../../devices/pci0/0000:00:0a.0/
lrwxrwxrwx 1 root root 30 Jun 17 13:14 driver -> ../../../bus/pci/drivers/3c59x/
-r--r--r-- 1 root root 4096 Jun 17 13:14 features
-rw-r--r-- 1 root root 4096 Jun 17 13:14 flags
-r--r--r-- 1 root root 4096 Jun 17 13:14 ifindex
-r--r--r-- 1 root root 4096 Jun 17 13:14 iflink
-rw-r--r-- 1 root root 4096 Jun 17 13:14 mtu
drwxr-xr-x 2 root root 0 Jun 17 13:14 statistics/
-rw-r--r-- 1 root root 4096 Jun 17 13:14 tx_queue_len
-r--r--r-- 1 root root 4096 Jun 17 13:14 type

driver, businfo.
drivers/<foo> does not provide a version string.
Should there be an entry for that?

-- 
USB is for mice, FireWire is for men!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/