Re: /proc/pci cleanup

Martin von Loewis (martin@mira.isdn.cs.tu-berlin.de)
Sun, 28 Dec 1997 17:22:22 +0100


> I tried to finally clean up the whole /proc/pci mess. The whole proc
> interface got replaced by /proc/bus/pci containing a textual summary file
> and per-device files to access PCI config registers (PCI config space
> access now available for user-mode programs on all architectures which
> was impossible before). /proc/pci remains as an optional compatibility
> glue (unfortunately, few programs try to parse it). No more kernel bloat
> with large device name tables (saving more than 16K).

Why isn't this exposed to the sysctl interface? I would suggest
/proc/sys/dev/pci as a place for it. Tools like lspci would then use
sysctl(2) instead of getdents, open, read.

Regards,
Martin