Re: DMA API issues

From: Linus Torvalds
Date: Mon Jun 21 2004 - 22:29:44 EST




On Mon, 21 Jun 2004, Linus Torvalds wrote:
>
> The argument at some point was that some architectures may not even _have_
> a "struct page" for DMA memory, since it's not "normal" memory (ie "slow
> memory" on m68k). However, I thought we all agreed that such a "struct
> page" could be furnished if that architecture wants so support mmap'ing.

.. which is not to say that we shouldn't have a "pci_mmap_pages()" thing
_too_. Pretty clearly the easiest interface often is to just map the pages
at mmap() time, and then we should just have a helper function to do that.

I thought we did one already, but hey, maybe not.

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/