Re: pci_domain_nr vs. /sys/devices

Russell King
2003-06-11T15:27:04Z

On Wed, Jun 11, 2003 at 03:48:01PM +0100, Matthew Wilcox wrote:
> Look in /sys/bus/pci/devices/ There you have all the PCI devices
> lumped together in one place, and we obviously need the domain number
> in the name. I don't know where the 0 on the end of /sys/devices/pci0/
> comes from, but if we could, I wouldn't say no to:

See pci_alloc_primary_bus_parented() in drivers/pci/probe.c. The '0'
is the bus number passed in. So, the names include the pci bus numbers
of the root buses.

--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux