mctl() - control memory management
#include <sys/mman.h>
mctl(void *addr, size_t len, int cmd, int arg)
The mctl(3) call controls the management of memory for the pages mapped in the range [addr, addr + len]. The actual management command is specified by cmd, which can be one of:
The mctl(3) call is actually an historical version of memcntl(2); it is equivalent to:
memcntl(addr, len, cmd, (void *)arg
See the memcntl(2) man page for more information.
The mctl(3) call returns 0 on success and -1 on failure. On failure, it sets the value of errno to indicate the error.
The mctl(3) call can fail for the following reasons:
memcntl(2)