From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: root@chaos.analogic.com
Cc: Chris Friesen <cfriesen@nortelnetworks.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: how to list pci devices from userpace? anything better than /proc/bus/pci/devices?
Date: 28 Nov 2002 16:37:55 +0000 [thread overview]
Message-ID: <1038501475.10020.9.camel@irongate.swansea.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.3.95.1021127163510.4690A-100000@chaos.analogic.com>
On Wed, 2002-11-27 at 21:41, Richard B. Johnson wrote:
> Red Hat distributions after 7.0 provide `lspci`. You still have
> to parse ASCII. FYI, it's not hard to write a 'C' program
> that directly accessed the PCI bus from its ports at 0xCF8 (index)
> and 0xCFC (data). You need to do 32-bit port accesses and you
> can set iopl(3) from user-space.
That wont work portably. lspci comes with a pci access library that uses
the kernel interfaces and does the job correctly
next prev parent reply other threads:[~2002-11-28 16:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-27 21:24 Chris Friesen
2002-11-27 21:41 ` Richard B. Johnson
2002-11-27 21:49 ` Jan-Benedict Glaw
2002-11-27 21:54 ` Martin Mares
2002-11-28 16:37 ` Alan Cox [this message]
2002-11-27 21:47 ` Dave Jones
2002-11-28 9:18 ` Thierry Vignaud
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=1038501475.10020.9.camel@irongate.swansea.linux.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=cfriesen@nortelnetworks.com \
--cc=linux-kernel@vger.kernel.org \
--cc=root@chaos.analogic.com \
/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
all inboxes | Powered by JetHome®