From: Chris Friesen <cfriesen@nortelnetworks.com>
To: William Lee Irwin III <wli@holomorphy.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: question on memory map cleanup stuff
Date: Tue, 19 Oct 2004 12:19:00 -0600 [thread overview]
Message-ID: <41755A94.8030207@nortelnetworks.com> (raw)
In-Reply-To: <20041018231432.GI5607@holomorphy.com>
William Lee Irwin III wrote:
> On Mon, Oct 18, 2004 at 04:57:20PM -0600, Chris Friesen wrote:
>
>>I've got a small feature that maps a page of kernel memory to userspace via
>>a syscall, then uses that page for various things.
>>Currently, I'm marking the page reserved, then exporting it via
>>remap_page_range(). This means that I need to clean up my mapping whenever
>>the memory map is destroyed (process death, exec(), daemonize, etc.).
> vma->vm_ops->close() often suffices for such without disturbing the core.
I'm running into a problem.
At the time of close(), I need to figure out which page to unreserve and free.
However, when I call
follow_page(vma->vm_mm, vma->vm_start, 0);
it returns zero. How do I go from vma to page?
Chris
next prev parent reply other threads:[~2004-10-19 19:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-18 22:57 question on memory map cleanup stuff Chris Friesen
2004-10-18 23:14 ` William Lee Irwin III
2004-10-18 23:39 ` Chris Friesen
2004-10-19 18:19 ` Chris Friesen [this message]
2004-10-19 18:24 ` William Lee Irwin III
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=41755A94.8030207@nortelnetworks.com \
--to=cfriesen@nortelnetworks.com \
--cc=linux-kernel@vger.kernel.org \
--cc=wli@holomorphy.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