On Wed, Jan 11, 2006 at 12:49:46PM -0500, Medeiros Edward M NPRI wrote: > I am looking at the accompanying code to the book "Linux Device > Drivers, 3rd edition". The file is "pci_skel.c". My question is where > is the memory for the "struct pci_dev" structure allocated? I see > the pointer "dev" reference it; and functions such as "probe()" and > "remove()" are passed a pointer to this "pci_dev" structure but I > can't see where the memory for it is actually being allocated. The pci core creates the memory for that structure, your driver should not worry about creating it. And if you are really curious about it, it's created in the pci_scan_device() function in drivers/pci/probe.c Hope this helps, greg k-h -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/