munlockall(), munlockall_r()

QNX SDP8.0C Library ReferenceAPIDeveloper

Unlock a process's address space

Synopsis:

#include <sys/mman.h>

int munlockall( void );

int munlockall_r( void );

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

Note:
In this QNX OS release, all memory is locked for the entire duration of the process, so this function does nothing.

The munlockall() function unlocks all of the currently mapped pages of the calling process's address space. You can lock memory by calling mlock() or mlockall().

The munlockall() and munlockall_r() functions are identical, except in the way they indicate errors. Refer to the Returns section for details.

Returns:

The only difference between these functions is the way they indicate errors:

munlockall()
This function always returns 0 (success).
munlockall_r()
This function always returns EOK (success).
CAUTION:
In earlier releases, this function could return errors under certain conditions. For QNX SDP 8, this function always succeeds. For more information, refer to the QNX SDP 8.0.x Release Notes.

Classification:

POSIX 1003.1 ML

Safety:
Cancellation pointNo
Signal handlerNo
ThreadYes
Page updated: