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