Re: new /proc/pci stuff

Krzysztof G. Baranowski (kgb@manjak.knm.org.pl)
Tue, 27 Jan 1998 21:18:04 +0100 (CET)


On Tue, 27 Jan 1998, Geert Uytterhoeven wrote:
>/proc/pci is only available if you enable CONFIG_PCI_OLD_PROC. It's being
>obsoleted by the new /proc/bus/pci.
Yes, but the problem is that /proc/pci exists even if
CONFIG_PCI_OLD_PROC is not set:
[root@manjak /root]# ls -l /proc/pc*
-r--r--r-- 1 root root 0 Jan 27 21:11 /proc/pci

But you can't access the file:

[root@manjak /root]# cat /proc/pci
cat: /proc/pci: Bad file descriptor

[root@manjak linux]# grep PCI .config
CONFIG_PCI=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_OPTIMIZE=y
# CONFIG_PCI_OLD_PROC is not set
CONFIG_BLK_DEV_IDEPCI=y

IMHO /proc/pci should have been removed if CONFIG_PCI_OLD_PROC is
disabled. I don't know if it is a bug or feature ?!

>To use /proc/bus/pci, you may want to install Martin Mares' pciutils (announced
>earlier today):
Ok, I haven't been reading linux-kernel for 36 hours. It's a loong
time in kernel development, isn't it ? ;-)

Cheers,
Kris

-- 
Krzysztof G. Baranowski - President of the Harmless Manyacs' Club
"Smith & Wesson - The original point and click interface..."
http://www.knm.org.pl/                 <prezes@manjak.knm.org.pl>