Re: Problem with remap_page_range/mmap
From: Christoph Hellwig
Date: Fri Mar 26 2004 - 04:48:13 EST
On Fri, Mar 26, 2004 at 10:36:19AM +0100, Christian Leber wrote:
> It also didn´t work with PG_reserved.
> What would be the good idea? I need at least 8 at least 4MB (2MB are enough for 2.4)
> big physical memory pieces for DMA, mapped to userspace.
> What is the reason why it doesn´t work? There seems to be no special
> remap_page_range for ia64.
Put the page structs into an array and return them from ->nopage. The
kernel pagefault code will set up the ptes for you.
Now actually getting 4MB of continguous memory is a different issue..
I'm surprised you actually managed to get the allocation to succeed.
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/