On Tue, Oct 2, 2012 at 12:16 AM, Paolo <paolopiace@xxxxxxxxxxx> wrote: > Bjorn Helgaas <bhelgaas <at> google.com> writes: >> >> In 2.6.32, the function pci_request_regions() is in the file >> drivers/pci/pci.c. It's still there in the current kernel (v3.6). >> >> The stuff below looks like a directory hierarchy, not information >> about the *contents* of the files. >> > > Don't know what to say. There is NO string "pci_request_regions" in any of those > files. They are just Makefile and Kconfig. > Yet, I'm working on a driver that calls that function and works just fine. > How/where does it find that pci_request_regions()? > > Here is the output of the ls command, purged of the dot directories. > > paolo@paolo-DT0:/usr/src/linux-headers-2.6.32-43$ ls -laR drivers/pci/ > > drivers/pci/: > drwxr-xr-x 2 root root 4096 2012-09-20 14:55 hotplug > -rw-r--r-- 1 root root 1977 2009-12-02 19:51 Kconfig > -rw-r--r-- 1 root root 1600 2009-12-02 19:51 Makefile > drwxr-xr-x 3 root root 4096 2012-09-20 14:55 pcie You don't have a complete kernel source tree. I think you're looking at just a kernel headers tree, e.g., what's installed in Ubuntu by the linux-headers package. You need to install something like the "linux-source" package to get the entire source tree. Bjorn -- 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