Unlock a process's address space
#include <sys/mman.h> int munlockall( void );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The munlockall() function unlocks all the currently mapped pages of the address space of the calling process. You can lock memory by calling mlock() or mlockall().
Any pages that become mapped into the address space of the process after it calls munlockall() aren't locked, unless there's an intervening call to mlockall() specifying MCL_FUTURE or a subsequent call to mlockall() specifying MCL_CURRENT.
Calling this function doesn't affect any memory locks set by other processes on the pages.
The full POSIX implementation for this function was added in the QNX Neutrino Core OS 6.3.2. |
0.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
mlock(), munlock(), mlockall()
“Locking memory” in the Process Manager chapter of the System Architecture guide