[Linux manuál]
Návod, kniha: Linux Programmer's Manual
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
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.
On POSIX systems on which mlockall and munlockall are available,
_POSIX_MEMLOCK is defined in <unistd.h> .
munlockall: znovu povolit stránkování pro volání procesu
Originální popis anglicky: munlockall - reenable paging for calling processNávod, kniha: Linux Programmer's Manual
STRUČNĚ
#include <sys/mman.h>int munlockall(void);
POPIS / INSTRUKCE
munlockall reenables paging for all pages mapped into the address space of the calling process.NÁVRATOVÁ HODNOTA
On success, munlockall returns zero. On error, -1 is returned and errno is set appropriately.CHYBY / ERRORY
- EPERM
- The calling process has insufficient privilege to call munlockall. Under Linux the CAP_IPC_LOCK capability is required.
ODPOVÍDAJÍCÍ
POSIX.1b, SVr4SOUVISEJÍCÍ
mlock(2), mlockall(2), munlock(2), capabilities(7)| 2004-05-27 | Linux 2.6.6 |