Re: /proc/bus/pci

From: Albert Cahalan (
Date: Thu Jun 05 2003 - 07:42:22 EST

On Thu, 2003-06-05 at 08:16, David S. Miller wrote:
> From: Albert Cahalan <>
> Date: Thu, 05 Jun 2003 08:05:59 -0400
> To make this clear, mmap() on bar0 would get you
> a mapping of that BAR.
> We have a way to portably mmap() PCI devices using just the device
> node.

The "device node"? You mean stuff in /proc, right?

> If you make this new method, you might have to define a whole
> new set of arch level support hooks.

No. You explained why not:

> What I'm saying is, we should reuse all of this code we have
> to support mmap()'ing PCI devices properly now (via procfs
> device node files).

The existing per-arch code looks like it would work.
At worst, an offset (probably already a #define somewhere)
might need to be added.

Pushing a MAP_MMIO through to the per-arch code
might be slightly more involved. I can do PowerPC
and x86 at least, if it comes to that.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Jun 07 2003 - 22:00:27 EST