Scanning the PCI bus in an application

I want to write a simple application that reads the PCI config space so that I can provide information on a specific device. It would also be nice if there was an API that enabled me to write to the PCI config space from an application. It is O.K. if the root account is required to use the application. Thanks, Brian

scanning pci bus? try google
Submitted by codyBane on Tue, 03/10/2009 - 21:45.

Hi, Have a look at the utility biosdecode:
http://www.cyberciti.biz/tips/querying-dumping-bios-from-linux-command-p...

Either use that and parse the output in your own app or have a look at their source code for lessons on 'howto'. I highly recommend using the existing tool and parsing the output. It'll save you a lot of hair in the long run.

CodyBane++

web application development