From: Andrew Morton <akpm@osdl.org>
To: linux-kernel@vger.kernel.org
Cc: timur.tabi@ammasso.com
Subject: Re: get_user_pages() and process termination
Date: Tue, 31 May 2005 22:01:06 -0700 [thread overview]
Message-ID: <20050531220106.357059ff.akpm@osdl.org> (raw)
In-Reply-To: <429CB7CF.2000200@ammasso.com>
Timur Tabi <timur.tabi@ammasso.com> wrote:
>
> If I call get_user_pages() on some pages owned by a process, and then the process exits,
> are the pages still pinned, or is there some kind of automatic cleanup?
get_user_pages() will pin the pages for you. You now own the additional
refcount on those pages. You must run put_page() against each page to
avoid leaking them.
prev parent reply other threads:[~2005-06-01 5:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-31 19:15 get_user_pages() and process termination Timur Tabi
2005-06-01 5:01 ` Andrew Morton [this message]
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=20050531220106.357059ff.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=timur.tabi@ammasso.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.