.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "GET_TASK_MM" "9" "09 October 2005" "" ""
.SH NAME
get_task_mm \- acquire a reference to the task's mm
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct mm_struct * get_task_mm (struct task_struct * \fItask\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fItask\fB\fR
-- undescribed --
.SH "DESCRIPTION"
.PP
.PP
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 \fBmmput\fR
after use. Typically used by /proc and ptrace.