About Red Hat Partner Programmes Training Support and Docs Products and Services
  downloadstorecart
red hat logo search    
redhat.comredhat network
Red Hat Documentation: man pages: man2: Linux Programmer's Manual (2)

Manpage of MUNLOCKALL

MUNLOCKALL

Section: Linux Programmer's Manual (2)
Updated: 2025-11-26
Index  

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

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

CONFORMING TO

POSIX.1b, SVr4  

SEE ALSO

and


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
CONFORMING TO
SEE ALSO

This document was created by using the manual pages.
Time: 11:56:06 GMT, March 24, 2025

 

 
 
© 2001 Red Hat, Inc. All rights reserved.       About Red Hat   :   Legal statement   :   Privacy statement   :   Y2K statement   :   Contact Red Hat