lkml.org 
[lkml]   [2005]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: memory mapping of vmalloc
Hi  Hugh,

rvmallaoc is working.
Very Very Thanks.

Regards,
Prakash

--- Hugh Dickins <hugh@veritas.com> wrote:

> On Tue, 1 Mar 2005, Prakash Bhurke wrote:
> > I am trying to map a vmalloc kernel buffer to
> user
> > space using remap_page_range(). In my module, this
> > function returns success if we call mmap() from
> user
> > space, but i can not access content of vmalloc
> buffer
> > from user space. Pointer returned by mmap()
> syscall
> > seems pointing to other memory page which contains
> > zeros. I am using linux 2.6.10 kernel on Pentium 4
> > system.
>
> Look for "rvmalloc" in various drivers in the kernel
> source tree:
> you must SetPageReserved before remap_pfn_range (or
> remap_page_range)
> agrees to map the page, and ClearPageReserved before
> freeing after.
>
> Hugh
> -
> 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/
>





__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/
-
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:10    [W:0.052 / U:0.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site