All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] Interface to PCI device list
Date: Sat, 02 Sep 2006 14:42:48 +0000	[thread overview]
Message-ID: <20060902164248.9a0075e4.khali@linux-fr.org> (raw)

Hi Greg,

Currently, the sensors-detect script uses /proc/bus/pci/devices (file)
to get a list of the PCI devices on the system. As this file doesn't
contain PCI class data, and I need it, I was looking for an
alternative. For 2.6 kernels, /sys/bus/pci/devices (directory) looks
like the right place to look at. This raises a few questions, which I
hope you can answer:

1* /proc/bus/pci/devices doesn't appear to contain PCI domain
information. I guess it only lists the devices on domain 0000, and
would miss devices on multi-domain machines?

2* Since which kernel version does /sys/bus/pci/devices look like the
way it is right now? Did the device IDs always include the PCI domain?
If it's stable since 2.6.0, I could use it in sensors-detect.

3* Will /sys/bus/pci/devices go away eventually?

Thanks,
-- 
Jean Delvare


             reply	other threads:[~2006-09-02 14:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-02 14:42 Jean Delvare [this message]
2006-09-02 18:30 ` [lm-sensors] Interface to PCI device list Greg KH
2006-09-02 20:41 ` Jean Delvare
2006-09-03  1:56 ` Greg KH
2006-09-03  8:28 ` Jean Delvare
2006-09-05 10:05 ` Jean Delvare

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=20060902164248.9a0075e4.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=lm-sensors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.