GET_TASK_MM

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

get_task_mm - acquire a reference to the task's mm  

SYNOPSIS

"SYNOPSIS"

struct mm_struct * get_task_mm (struct task_struct * task);  

ARGUMENTS

task
-- undescribed --
 

DESCRIPTION

Returns NULL if the task has no mm. Checks PF_BORROWED_MM (meaning this kernel workthread has transiently adopted a user mm with use_mm, to do its AIO) is not set and if so returns a reference to it, after bumping up the use count. User must release the mm via mmput after use. Typically used by /proc and ptrace.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:11 GMT, October 09, 2005