From: Chris Friesen <cfriesen@nortelnetworks.com>
To: Hugh Dickins <hugh@veritas.com>
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: having problems with remap_page_range() and virt_to_phys()
Date: Fri, 10 Sep 2004 15:38:56 -0600 [thread overview]
Message-ID: <41421EF0.6020106@nortelnetworks.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0409101501530.16728-100000@localhost.localdomain>
Hugh Dickins wrote:
> And no, remembering your earlier pleas, the MM system doesn't clean
> up for you, you'll need to ClearPageReserved and free the page when
> it's all done with (if ever).
Cleanup will be at process death, so I'm adding a routine to be called from
do_exit().
As part of that cleanup, do I need to call do_munmap() on the user virtual
address first, or can I just do
ClearPageReserved(pg);
__free_pages(pg,0);
and then rely on the mm takedown to properly unmap and drop its references?
Basically I'm not sure if I can clear the reservation and free the page while
it's still mapped in the task's memory map.
Chris
next prev parent reply other threads:[~2004-09-10 21:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-10 0:01 having problems with remap_page_range() and virt_to_phys() Chris Friesen
2004-09-10 14:15 ` Hugh Dickins
2004-09-10 15:13 ` Chris Friesen
2004-09-10 17:52 ` Chris Friesen
2004-09-10 21:38 ` Chris Friesen [this message]
2004-09-10 21:01 ` problems with remap_page_range() and virt_to_phys() -- solved Chris Friesen
[not found] <972562878@toto.iv>
2004-09-10 4:00 ` having problems with remap_page_range() and virt_to_phys() Peter Chubb
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=41421EF0.6020106@nortelnetworks.com \
--to=cfriesen@nortelnetworks.com \
--cc=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
/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