16 #ifndef included_linux_syscall_h 17 #define included_linux_syscall_h 20 #include <sys/syscall.h> 23 set_mempolicy (
int mode,
const unsigned long *nodemask,
unsigned long maxnode)
25 return syscall (__NR_set_mempolicy, mode, nodemask, maxnode);
29 get_mempolicy (
int *mode,
unsigned long *nodemask,
unsigned long maxnode,
32 return syscall (__NR_get_mempolicy, mode, nodemask, maxnode, addr, flags);
37 int *status,
int flags)
39 return syscall (__NR_move_pages, pid, count, pages, nodes, status, flags);
42 #ifndef HAVE_MEMFD_CREATE 46 return syscall (__NR_memfd_create, name, flags);
static int memfd_create(const char *name, unsigned int flags)
static long set_mempolicy(int mode, const unsigned long *nodemask, unsigned long maxnode)
static int get_mempolicy(int *mode, unsigned long *nodemask, unsigned long maxnode, void *addr, unsigned long flags)
static long move_pages(int pid, unsigned long count, void **pages, const int *nodes, int *status, int flags)