VxWorks Reference Manual : Libraries
mmanPxLib - memory management library (POSIX)
mlockall( ) - lock all pages used by a process into memory (POSIX)
munlockall( ) - unlock all pages used by a process (POSIX)
mlock( ) - lock specified pages into memory (POSIX)
munlock( ) - unlock specified pages (POSIX)
This library contains POSIX interfaces designed to lock and unlock memory pages, i.e., to control whether those pages may be swapped to secondary storage. Since VxWorks does not use swapping (all pages are always kept in memory), these routines have no real effect and simply return 0 (OK).
sys/mman.h
mmanPxLib, POSIX 1003.1b document
mlockall( ) - lock all pages used by a process into memory (POSIX)
int mlockall ( int flags )
This routine guarantees that all pages used by a process are memory resident. In VxWorks, the flags argument is ignored, since all pages are memory resident.
0 (OK) always.
N/A
munlockall( ) - unlock all pages used by a process (POSIX)
int munlockall (void)
This routine unlocks all pages used by a process from being memory resident.
0 (OK) always.
N/A
mlock( ) - lock specified pages into memory (POSIX)
int mlock ( const void * addr, size_t len )
This routine guarantees that the specified pages are memory resident. In VxWorks, the addr and len arguments are ignored, since all pages are memory resident.
0 (OK) always.
N/A
munlock( ) - unlock specified pages (POSIX)
int munlock ( const void * addr, size_t len )
This routine unlocks specified pages from being memory resident.
0 (OK) always.
N/A