Re: /proc/pci design idea

Mark H. Wood (mwood@mhw.OIT.IUPUI.EDU)
Sat, 20 Sep 1997 08:51:49 -0500 (EST)


On Thu, 11 Sep 1997, Stephen Williams wrote:

>
> I'm considering taking on the task of moving device identification
> messages for PCI devices into user space. It makes little sense to me
> to keep vendor/device names compiled into the kernel. Makes it ugly for
> those of us who ship PCI boards with linux drivers as modules.
>
> So I'm thinking of turning /proc/pci into the directory /proc/pcibus
> with subdirectories xx (bus number) and yy under that for a device.
>
> i.e. /proc/pcibus/01/40 identifies a specific device on bus 1, dev_fn 0x40.
>
> That file would contain the 256byte configuration space for the device.
> A user-mode program would interpret the bytes to make a pretty display,
> if such a thing is desired. (Such a thing is desired by me:-)

If it's just going to be ugly binary gunk, do it in sysctl(2) instead.

Mark H. Wood, Lead System Programmer MWOOD@INDYVAX.IUPUI.EDU
Those who will not learn from history are doomed to reimplement it.