munlockall()
Unlock a process's address space
Synopsis:
#include <sys/mman.h> int munlockall( void );
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
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.
Returns:
0.
Classification:
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |