Penguin
Annotated edit history of munlock(2) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 !!NAME
2 PerryLorier 2 munlock - reenable paging for some parts of memory
1 perry 3
4 !!SYNOPSIS
2 PerryLorier 5 __#include <sys/mman.h>__
6 __int munlock(const void *__''addr''__, size_t__ ''len''__);__
1 perry 7
8 !!DESCRIPTION
2 PerryLorier 9 __munlock__ reenables paging for the memory in the range starting at ''addr'' with length ''len'' bytes. All pages which contain a part of the specified memory range can
10 after calling __munlock__ be moved to external swap space again by the kernel.
1 perry 11
2 PerryLorier 12 Memory locks do not stack, i.e., pages which have been locked several times by calls to __mlock__ or __mlockall__ will be unlocked by a single call to __munlock__ for the corresponding range or by __munlockall__. Pages which are mapped to several locations or by several processes stay locked into RAM as long as they are locked at least at one location or by at least one process.
1 perry 13
2 PerryLorier 14 On POSIX systems on which __mlock__ and __munlock__ are available, ___POSIX_MEMLOCK_RANGE__ is defined in __PAGESIZE__ from <limits.h> indicates the number of bytes per page.
1 perry 15
16 !!RETURN VALUE
2 PerryLorier 17 On success, __munlock__ returns zero. On error, -1 is returned, ''errno'' is set appropriately, and no changes are made to any locks in the address space of the process.
1 perry 18
19 !!ERRORS
2 PerryLorier 20 ;[ENOMEM]: Some of the specified address range does not correspond to mapped pages in the address space of the process.
21 ;[EINVAL]: ''len'' was not a positive number.
1 perry 22
23 !!CONFORMING TO
2 PerryLorier 24 POSIX.1b, SVr4
1 perry 25
26 !!SEE ALSO
2 PerryLorier 27 mlock(2), mlockall(2), munlockall(2)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 7 times)