mirror of https://github.com/mkerrisk/man-pages
mlock.2: Minor tweaks
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
9e5de5dac4
commit
9f1eb9e08d
|
@ -42,16 +42,18 @@ mlock, mlock2, munlock, mlockall, munlockall \- lock and unlock memory
|
||||||
.BR mlock2 (),
|
.BR mlock2 (),
|
||||||
and
|
and
|
||||||
.BR mlockall ()
|
.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
|
space into RAM, preventing that memory from being paged to the
|
||||||
swap area.
|
swap area.
|
||||||
|
|
||||||
.BR munlock ()
|
.BR munlock ()
|
||||||
and
|
and
|
||||||
.BR munlockall ()
|
.BR munlockall ()
|
||||||
perform the converse operation,
|
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
|
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.
|
once more to be swapped out if required by the kernel memory manager.
|
||||||
|
|
||||||
Memory locking and unlocking are performed in units of whole pages.
|
Memory locking and unlocking are performed in units of whole pages.
|
||||||
.SS mlock(), mlock2(), and munlock()
|
.SS mlock(), mlock2(), and munlock()
|
||||||
.BR mlock ()
|
.BR mlock ()
|
||||||
|
|
Loading…
Reference in New Issue