munlockall()

Unlock a process's address space

Synopsis:

#include <sys/mman.h>

int munlockall( void );

Since:

BlackBerry 10.0.0

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:

POSIX 1003.1 ML

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

Last modified: 2014-11-17



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus