From: Charles Lepple <clepple@ghz.cc>
To: linux-kernel@vger.kernel.org
Subject: Re: finding which pci device works as ide controller for root fs
Date: Thu, 14 Aug 2003 22:39:22 -0400 [thread overview]
Message-ID: <bhhh4r$n16$1@sea.gmane.org> (raw)
In-Reply-To: <200308150238.30618.arekm@pld-linux.org>
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>
prev parent reply other threads:[~2003-08-15 2:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-14 16:26 finding which pci device works as ide controller for root fs Arkadiusz Miskiewicz
2003-08-15 0:15 ` Greg KH
2003-08-15 0:38 ` Arkadiusz Miskiewicz
2003-08-15 2:39 ` Charles Lepple [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='bhhh4r$n16$1@sea.gmane.org' \
--to=clepple@ghz.cc \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox