* pci_request_regions()
@ 2012-10-01 22:28 Paolo
2012-10-02 4:25 ` pci_request_regions() Bjorn Helgaas
0 siblings, 1 reply; 5+ messages in thread
From: Paolo @ 2012-10-01 22:28 UTC (permalink / raw)
To: linux-pci
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: pci_request_regions()
2012-10-01 22:28 pci_request_regions() Paolo
@ 2012-10-02 4:25 ` Bjorn Helgaas
2012-10-02 6:16 ` pci_request_regions() Paolo
0 siblings, 1 reply; 5+ messages in thread
From: Bjorn Helgaas @ 2012-10-02 4:25 UTC (permalink / raw)
To: Paolo; +Cc: linux-pci
On Mon, Oct 1, 2012 at 4:28 PM, Paolo <paolopiace@gmail.com> wrote:
> 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.
> 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 majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: pci_request_regions()
2012-10-02 4:25 ` pci_request_regions() Bjorn Helgaas
@ 2012-10-02 6:16 ` Paolo
2012-10-02 14:29 ` pci_request_regions() Bjorn Helgaas
0 siblings, 1 reply; 5+ messages in thread
From: Paolo @ 2012-10-02 6:16 UTC (permalink / raw)
To: linux-pci
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: pci_request_regions()
2012-10-02 6:16 ` pci_request_regions() Paolo
@ 2012-10-02 14:29 ` Bjorn Helgaas
2012-10-02 15:08 ` pci_request_regions() Paolo
0 siblings, 1 reply; 5+ messages in thread
From: Bjorn Helgaas @ 2012-10-02 14:29 UTC (permalink / raw)
To: Paolo; +Cc: linux-pci
On Tue, Oct 2, 2012 at 12:16 AM, Paolo <paolopiace@hotmail.com> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: pci_request_regions()
2012-10-02 14:29 ` pci_request_regions() Bjorn Helgaas
@ 2012-10-02 15:08 ` Paolo
0 siblings, 0 replies; 5+ messages in thread
From: Paolo @ 2012-10-02 15:08 UTC (permalink / raw)
To: linux-pci
> Bjorn Helgaas <bhelgaas <at> google.com> writes:
>
> You don't have a complete kernel source tree.
Rightfully so! Thanks a bunch.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-10-02 15:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-01 22:28 pci_request_regions() Paolo
2012-10-02 4:25 ` pci_request_regions() Bjorn Helgaas
2012-10-02 6:16 ` pci_request_regions() Paolo
2012-10-02 14:29 ` pci_request_regions() Bjorn Helgaas
2012-10-02 15:08 ` pci_request_regions() Paolo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).