Skip to contentSkip to conversation

pci_request_regions()

DISCUSSION Paolo 3 participants 5 messages Oct 1, 2012 – Oct 2, 2012 PCI

lore
Share & tools
lore

Paolo

author
#0 lore raw

I cannot locate pci_request_regions()

Where can I find it?

I am working with kernel 2.6.32.

Supposedly, it should be in drivers/pci/pci.c but there is nothing like that.

There, I see:
.

├── hotplug
│   ├── Kconfig
│   └── Makefile
├── Kconfig
├── Makefile
└── pcie
    ├── aer
    │   ├── Kconfig
    │   ├── Kconfig.debug
    │   └── Makefile
    ├── Kconfig
    └── Makefile
maintainer
#1 lore raw
Quoted 7 lines · Paolo

I cannot locate pci_request_regions()

Where can I find it?

I am working with kernel 2.6.32.

Supposedly, it should be in drivers/pci/pci.c but there is nothing like that.

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.

Quoted 19 lines

There, I see:
.

├── hotplug
│   ├── Kconfig
│   └── Makefile
├── Kconfig
├── Makefile
└── pcie
    ├── aer
    │   ├── Kconfig
    │   ├── Kconfig.debug
    │   └── Makefile
    ├── Kconfig
    └── Makefile

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 7 lines · 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

drivers/pci/hotplug:
-rw-r--r-- 1 root root 4907 2009-12-02 19:51 Kconfig -rw-r--r-- 1 root root 1855 2009-12-02 19:51 Makefile

drivers/pci/pcie:
drwxr-xr-x 2 root root 4096 2012-09-20 14:55 aer -rw-r--r-- 1 root root 1241 2009-12-02 19:51 Kconfig -rw-r--r-- 1 root root 286 2009-12-02 19:51 Makefile

drivers/pci/pcie/aer:

-rw-r--r-- 1 root root  634 2009-12-02 19:51 Kconfig
-rw-r--r-- 1 root root  585 2009-12-02 19:51 Kconfig.debug
-rw-r--r-- 1 root root  294 2009-12-02 19:51 Makefile
maintainer
#3 lore raw
Quoted 22 lines · Paolo
Quoted 7 lines · 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

(quoted diff) +0 -2
-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
Quoted 1 line

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

author
#4 lore raw
Quoted 3 lines

Bjorn Helgaas <bhelgaas <at> google.com> writes:

You don't have a complete kernel source tree.

Rightfully so! Thanks a bunch.