lkml.org 
[lkml]   [2003]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: finding which pci device works as ide controller for root fs
Date
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?

> greg k-h

--
Arkadiusz Miśkiewicz CS at FoE, Wroclaw University of Technology
arekm@sse.pl AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.036 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site