----- Original Message ----- From: "Martin Mares" <mj@xxxxxx> To: "Gilles Espinasse" <g.esp@xxxxxxx> Cc: <linux-pci@xxxxxxxxxxxxxxx> Sent: Saturday, June 27, 2009 6:24 PM Subject: Re: minor bug in pciutils libpci for sparc64 when /sys is not mounted > Hello Gilles, > > > That's by error inside a chroot that I find that if /sys is not mounted, > > lspci fail. > > > Trying method 2......using /proc/bus/pci...OK > > > Decided to use linux-proc > > pcilib: Cannot open /proc/bus/pci/02/03.0 > > Could you please try to read this file? > ultra5:~# LANG=C ls /proc/bus/pci/02/03.0 ls: cannot access /proc/bus/pci/02/03.0: No such file or directory ultra5:~# LANG=C ls /proc/bus/pci/0000:02/03.0 /proc/bus/pci/0000:02/03.0 At least that's consistent with ultra5:~# ls /proc/bus/pci 0000:00 0000:01 0000:02 devices If that matter ultra5:~# uname -r 2.6.26-1-sparc64 0000: prefix has to be added everywhere in /proc/bus/pci path Gilles -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html