From: Hugh Dickins <hugh@veritas.com>
To: Prakash Bhurke <prakash_bhurke@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: memory mapping of vmalloc
Date: Tue, 1 Mar 2005 17:17:36 +0000 (GMT) [thread overview]
Message-ID: <Pine.LNX.4.61.0503011713470.31799@goblin.wat.veritas.com> (raw)
In-Reply-To: <20050301130803.34688.qmail@web54610.mail.yahoo.com>
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
next prev parent reply other threads:[~2005-03-01 17:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-01 13:08 Prakash Bhurke
2005-03-01 17:17 ` Hugh Dickins [this message]
2005-03-02 14:28 ` Prakash Bhurke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.61.0503011713470.31799@goblin.wat.veritas.com \
--to=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=prakash_bhurke@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®