lkml.org 
[lkml]   [2004]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Problem with remap_page_range/mmap
On Fri, 26 Mar 2004 09:46:56 +0000
Christoph Hellwig <hch@infradead.org> wrote:

> On Fri, Mar 26, 2004 at 10:36:19AM +0100, Christian Leber wrote:
> > 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.
> >
> > 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.

There is more detailed information about make page usable to user space,
http://www.xml.com/ldd/chapter/book/ch13.html

Hope that's useful.

--
Hu Gang / Steve
Linux Registered User 204016
GPG Public Key: http://soulinfo.com/~hugang/hugang.asc
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.180 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site