info about pci device-node <-> dev device-node

From: Olaf Hering (olh@suse.de)
Date: Sat Jul 01 2000 - 19:23:15 EST


Hi,

the current /proc structure doesn't provide any info about the following
fact:

I have 2 SCSI drives and 2 SCSI controllers.
Both of them appear in /proc/scsi/scsi with host:x and y.
Both controllers appear also in /proc/bus/pci (or lspci -n).
The info what device (like /dev/sda) is connected to what contoller is
missing.

Is there a way to show this kind of information
(devs device-node -> pci device-node)?

Something like:

cat /proc/hardware
pci_node="01:00.0" device_node="8.0"

The kernel and the drivers must know that. If I access /dev/sda the data
must go through the driver and then to the correct device. But the info
about that seems to be hidden.

Any hints or patches to display that stuff?

Gruss Olaf

-- 
 $ man clone

BUGS Main feature not yet implemented...

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:09 EST