mlock.2: Minor tweaks

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-12-14 22:27:20 +01:00
parent 9e5de5dac4
commit 9f1eb9e08d
1 changed files with 4 additions and 2 deletions

View File

@ -42,16 +42,18 @@ mlock, mlock2, munlock, mlockall, munlockall \- lock and unlock memory
.BR mlock2 (),
and
.BR mlockall ()
respectively lock part or all of the calling process's virtual address
lock part or all of the calling process's virtual address
space into RAM, preventing that memory from being paged to the
swap area.
.BR munlock ()
and
.BR munlockall ()
perform the converse operation,
respectively unlocking part or all of the calling process's virtual
unlocking part or all of the calling process's virtual
address space, so that pages in the specified virtual address range may
once more to be swapped out if required by the kernel memory manager.
Memory locking and unlocking are performed in units of whole pages.
.SS mlock(), mlock2(), and munlock()
.BR mlock ()