public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* get_user_pages() and process termination
@ 2005-05-31 19:15 Timur Tabi
  2005-06-01  5:01 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Timur Tabi @ 2005-05-31 19:15 UTC (permalink / raw)
  To: linux-kernel

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?

-- 
Timur Tabi
Staff Software Engineer
timur.tabi@ammasso.com

One thing a Southern boy will never say is,
"I don't think duct tape will fix it."
      -- Ed Smylie, NASA engineer for Apollo 13

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: get_user_pages() and process termination
  2005-05-31 19:15 get_user_pages() and process termination Timur Tabi
@ 2005-06-01  5:01 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2005-06-01  5:01 UTC (permalink / raw)
  To: linux-kernel; +Cc: timur.tabi

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-01  5:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-31 19:15 get_user_pages() and process termination Timur Tabi
2005-06-01  5:01 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox