On Mon, Jun 4, 2012 at 9:11 PM, Ram Pai <linuxram@xxxxxxxxxx> wrote: > On Tue, Jun 05, 2012 at 11:26:27AM +0800, Richard Yang wrote: >> BTW, the pci_bus->self, pci_bus->bridge seem to point the same thing. >> So this is really necessary to do this? > > pci_bus->self points to the pci_dev structure, and pci_bus->bridge > points to the device structure. Both correspond to the same bridge. BTW: device > structure is the basic structure to represent any device in the system, > not necessarily pci device. That's true, but I don't think it answers the question. If we have: pci_bus->bridge == pci_bus->self->dev why would we need both "self" and "bridge"? It would be interesting to try to remove "bridge" and replace uses of it with "self->dev". -- 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