*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> munlockall (2)              



NAME    [Toc]    [Back]

       munlockall - reenable paging for calling process

SYNOPSIS    [Toc]    [Back]

       #include <sys/mman.h>

       int munlockall(void);

DESCRIPTION    [Toc]    [Back]

       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  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> .

RETURN VALUE    [Toc]    [Back]

       On  success,  munlockall  returns  zero.   On error, -1 is returned and
       errno is set appropriately.

CONFORMING TO    [Toc]    [Back]

       POSIX.1b, SVr4

SEE ALSO    [Toc]    [Back]

       mlockall(2), mlock(2), munlock(2)

Linux 1.3.43			  1995-11-26			 MUNLOCKALL(2)
[ Back ]
 Similar pages
Name OS Title
mlockall Linux disable paging for calling process
munlock Linux reenable paging for some parts of memory
pthread_atfork Tru64 Declares fork handler routines to be called when the calling thread's process forks a child process
pxfwait IRIX Obtains information about a calling process' child process
tt_open HP-UX return the process identifier for the calling process
getaudproc HP-UX get the audit process flag for the calling process
madvise Tru64 Advise the system of the expected paging behavior of a process
nmadvise Tru64 Advise the system of the expected paging behavior of a process (libnuma)
aio_suspend Tru64 Suspends the calling process until at least
getgid Tru64 Get the group ID of the calling process
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service