Scroll to navigation

MMGET(9) Driver Basics MMGET(9)

NAME

mmget - Pin the address space associated with a struct mm_struct.

SYNOPSIS

void mmget(struct mm_struct * mm);

ARGUMENTS

mm

The address space to pin.

DESCRIPTION

Make sure that the address space of the given struct mm_struct doesn't go away. This does not protect against parts of the address space being modified or freed, however.

Never use this function to pin this address space for an unbounded/indefinite amount of time.

Use mmput to release the reference acquired by mmget.

See also <Documentation/vm/active_mm.txt> for an in-depth explanation of mm_struct.mm_count vs mm_struct.mm_users.

COPYRIGHT

June 2023 Kernel Hackers Manual 3.10