1 2 3 4 5 6 7
#include <syscall.h> #include <sys/mman.h> int mlock(const void *addr, size_t len) { return syscall(mlock, addr, len); }