posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
_POSIX_MEMLOCK_RANGE

POSIX Range Memory Locking option. More...

Functions

int mlock (const void *addr, size_t len)
 Lock a range of the calling process's address space into memory.
 
int munlock (const void *addr, size_t len)
 Unlock a range of the calling process's address space.
 

Detailed Description

POSIX Range Memory Locking option.

Function Documentation

◆ mlock()

int mlock ( const void *  addr,
size_t  len 
)

Lock a range of the calling process's address space into memory.

Parameters
addrBase address of the region to lock.
lenLength of the region in bytes.
Returns
0 on success, or -1 with errno set on failure.
See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/mlock.html

◆ munlock()

int munlock ( const void *  addr,
size_t  len 
)

Unlock a range of the calling process's address space.

Parameters
addrBase address of the region to unlock.
lenLength of the region in bytes.
Returns
0 on success, or -1 with errno set on failure.
See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/munlock.html