On Mon, May 04, 2009 at 12:47:44PM +0530, arun c wrote: > Hi all, > > I have a dual core system(I am running kernel 2.6.22, 2.6.16, or 2.6.27 ), > where I can put a maximum of 8 similar PCI cards. > > So in my driver I register ('pci_register_driver()') with device ID and > vender ID(same for all 8 cards). > > I need to access a global data from the probe functions. If there are > 8 PCI devices detected probe function is called one after another? > > or is there any chance that they execute in parallel? Yes, in the future (and in some types of configurations today), it could execute in parallel. Just use a lock to control access to your shared global data structure. But you might wish to revisit your usage of global data, why can't it be a per-device field that is dynamically created for every individual device? That would scale much better, right? thanks, greg k-h -- 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