Results 1 to 3 of 3
Hello,
Please help me in finding the Hardware ID of all PCI devices from /proc.
How can I read these datas from the /proc/bus/pci directory ussing C program?
Thanks & ...
- 03-20-2007 #1Just Joined!
- Join Date
- Mar 2007
- Posts
- 1
Getting Hardware information
Hello,
Please help me in finding the Hardware ID of all PCI devices from /proc.
How can I read these datas from the /proc/bus/pci directory ussing C program?
Thanks & regards
Praveenbk
- 03-20-2007 #2
Instead of reading data from /proc/bus/pci, u can use lspci or scanpci to get all the details related to ur hardware devices.
---------------------------------
Registered Linux User #440311
HI2ARUN _AT_ GMAIL _DOT_ COM
---------------------------------
- 03-21-2007 #3
Depends also on what do you want to achieve.
Simply looking into those files you can with "cat /proc/bus/pci/devices". Everything there that is not a directory is a file and you can read it that way.
If you want to read the proc file systems from a C program, grep over the driver source tree. There is a lot of driver source files that write to or read from the proc file system.Bus Error: Passengers dumped. Hech gap yo'q.


Reply With Quote
