Lock a buffer in physical memory
#include <sys/mman.h>
int mlock( const void * addr,
size_t len );
libc
The mlock() function isn't currently supported.
-1 to indicate an error (errno is set).
POSIX 1003.1 (Realtime Extensions)
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
mlockall(), munlock(), munlockall()