Re: [RFC/PATCH] Add pci_walk_bus function to PCI core

From: Arjan van de Ven
Date: Wed Aug 10 2005 - 01:11:21 EST


On Wed, 2005-08-10 at 11:36 +1000, Paul Mackerras wrote:
> Greg,
>
> Any comments on this patch? Would you be amenable to it going in post
> 2.6.13?
>
> The PCI error recovery infrastructure needs to be able to contact all
> the drivers affected by a PCI error event, which may mean traversing
> all the devices under a given PCI-PCI bridge. This patch adds a
> function to the PCI core that traverses all the PCI devices on a PCI
> bus and under any PCI-PCI bridges on that bus (recursively), calling a
> given function for each device.

is there a way to avoid the recursion somehow? Recursion is "not fun"
stack usage wise, esp if you have really deep hierarchies....


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/