[openib-general] Re: mstflint failing on sparc64

Michael S. Tsirkin mst at mellanox.co.il
Thu Jan 6 13:50:17 PST 2005


Hello!
Quoting r. Roland Dreier (roland.list at gmail.com) "Re: [openib-general] Re: mstflint failing on sparc64":
> > I know. But where does lspci get the domain number?
> 
> >From sysfs -- lspci goes through the entries in /sys/bus/pci/devices.
> If you strace lspci on a modern distro, you can see it doesn't open
> anything in /proc.
> 
> > Cool, how do *they* look in /proc/bus/pci/devices?
> 
> As you can see from show_device in drivers/pci/proc.c, the domain number
> is not listed in /proc/bus/pci/devices.  So that interface is not useful on
> multi-domain systems.
> 
>  - R.

Yep, I just thought I missed something.
So /proc/bus/pci/devices is broken - I thought so too, from kernel
source its clear.

MST



More information about the general mailing list