Re: finding which pci device works as ide controller for root fs

Charles Lepple
2003-08-15T02:48:56Z

Arkadiusz Miskiewicz wrote:
> On Friday 15 of August 2003 02:15, Greg KH wrote:
>
>>On Thu, Aug 14, 2003 at 06:26:30PM +0200, Arkadiusz Miskiewicz wrote:
>>
>>>[arekm@mobarm arekm]$ ls -l /sys/block/hda/device
>>>lrwxrwxrwx 1 root root 46 2003-08-14 00:49
>>>/sys/block/hda/device -> ../../devices/pci0000:00/0000:00:11.1/ide0/0.0
>>>
>>>Is it possible to get PCI ID from sysfs for specified device?
>>
>>It's right there in the path to the ide device "0000:00:11.1"
>
> How's that related to awk ' { print $2 } ' /proc/bus/pci/devices?

If you're looking for the vendor and product IDs, they're in
/sys/devices/pci..../..../{vendor,device}

--
Charles Lepple <ghz.cc!clepple>