SYNOPSIS
#include <sys/mman.h>
int mlockall(int flags);
int munlockall(void);
DESCRIPTION
The
- MCL_CURRENT
-
Locks all pages currently mapped into the address space of the process.
- MCL_FUTURE
-
Locks all pages that become mapped into the address space of the process in the future, when those mappings are established.
The appropriate privilege is required to lock process memory with
The
PARAMETERS
- flags
-
Specifies the flags that determine whether the pages to be locked are those currently mapped, those that are mapped in the future, or both.
RETURN VALUES
The
On success, the
- EAGAIN
-
Some or all of the memory identified by the operation could not be locked when the call was made.
- EINVAL
-
The flags argument is zero, or includes unimplemented flags.
- ENOMEM
-
Locking all of the pages currently mapped into the address space of the process would exceed the amount of memory that the process may lock.
- EPERM
-
The calling process does not have the appropriate privilege to perform the requested operation.
CONFORMANCE
UNIX 03.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
On the NuTCRACKER Platform the
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
PTC MKS Toolkit 10.5 Documentation Build 40.