Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/m/munlock.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/m/munlock.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/m/munlock.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/m/munlock.html on line 8
Unlock the range of process address space already allocated
#include <sys/mman.h>
int munlock(const void * addr,
size_t len);
- addr
- The starting address for the range of process address space.
- len
- The length of the memory buffer, in bytes.
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The munlock() function unlocks the pages already locked by
mlock() or mlockall(). It ignores how many times mlock() has been
called before.
|
The full POSIX implementation for this function was added in the QNX Neutrino Core OS 6.3.2. |
The munlock() function doesn't affect those pages that have been
mapped and locked into the address spaces of other processes.
|
Memory-resident is a term used to indicate that the addresses always
reside in physical memory. |
- 0
- Success.
- -1
- An error has occurred (errno
is set).
- ENOMEM
- Some or all of the address range specified by the addr and
len
arguments doesn't correspond to valid mapped pages in the address space of
the process.
POSIX 1003.1 MLR
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
mlock(),
mlockall()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/m/munlock.html on line 168
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/m/munlock.html on line 168