munlock()

QNX SDP8.0C Library ReferenceAPIDeveloper

Unlock the address space of a process

Synopsis:

#include <sys/mman.h>

int munlock(const void * addr, 
            size_t len);

Arguments:

addr
The starting address for the range of process address space.
len
The amount of memory to unlock, in bytes.

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 munlock() function unlocks the whole pages containing any part of the calling process's address space starting at address addr and continuing for len bytes, regardless of how many times mlock() has been called by the process for any of the pages in the specified range.

Returns:

In this release, this function always returns 0 (success).

Classification:

POSIX 1003.1 MLR

Safety:
Cancellation pointNo
Signal handlerYes
ThreadYes
Page updated: