Seth Woolley's Man Viewer

munlockall(2) - munlockall, munlockall - reenable paging for calling process - man 2 munlockall

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

MUNLOCKALL(2)              Linux Programmer's Manual             MUNLOCKALL(2)



NAME
       munlockall - reenable paging for calling process

SYNOPSIS
       #include <sys/mman.h>

       int munlockall(void);

DESCRIPTION
       munlockall reenables paging for all pages mapped into the address space
       of the calling process.

       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  sev-
       eral 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(1,8) <unistd.h> .

RETURN VALUE
       On  success,  munlockall  returns  zero.   On error(8,n), -1 is returned and
       errno is set(7,n,1 builtins) appropriately.

ERRORS
       EPERM  The calling process has insufficient privilege to call  munlock-
              all.  Under Linux the CAP_IPC_LOCK capability is required.

CONFORMING TO
       POSIX.1b, SVr4

SEE ALSO
       mlock(2), mlockall(2), munlock(2), capabilities(7)



Linux 2.6.6                       2004-05-27                     MUNLOCKALL(2)

References for this manual (incoming links)