Subject: is it possible to find out where a device is attached?
To: None <>
From: David Laight <>
List: tech-kern
Date: 02/15/2003 12:15:57
I was looking at the code used to tie together the bios drive numbers
for hard disks with the netbsd device driver/unit name.

The PCI bios will (bugs excepted) tell us where it found a particular
disk - eg ATA on pci bus 0 device 5 function 1.

However I can't spot a way of getting the same information out of
the netbsd device tree - eg starting from alldevs.
The 'bus type' and 'locators' seem to be absent from the referenced
data structures.

What have I missed?


David Laight: