Re: /proc/pci design idea

Stephen Williams (steve@icarus.icarus.com)
Sat, 13 Sep 1997 14:49:31 +0800


koenig@tat.physik.uni-tuebingen.de said:
> no! the idea of /proc/pci is to get just this id -> name translation
> out of the kernel into user space, so it can be updated
> independantly...

beeker.icarus.com % ls -l /proc/pcibus
total 0
-r--r--r-- 1 root root 256 Sep 13 14:48 0000
-r--r--r-- 1 root root 256 Sep 13 14:48 0030
-r--r--r-- 1 root root 256 Sep 13 14:48 0050
-r--r--r-- 1 root root 256 Sep 13 14:48 0068
-r--r--r-- 1 root root 256 Sep 13 14:48 0088
-r--r--r-- 1 root root 256 Sep 13 14:48 0089

Each of the files there is the configuration space for the device with the
given bus/slot number. A user-mode program can then read the ids and anything
else of interest and make a pretty listing.

Will be making a patch against 2.1.55 to make this work, then will start
in on the usr mode program that does the pretty printing.

-- 
Steve Williams
steve@icarus.com
steve@picturel.com

"The woods are lovely, dark and deep. But I have promises to keep, And lines to code before I sleep, And lines to code before I sleep."