16 #ifndef included_linux_syscall_h 17 #define included_linux_syscall_h 20 #include <sys/syscall.h> 24 getcpu (
unsigned *cpu,
unsigned *node)
26 return syscall (__NR_getcpu, cpu, node, 0);
33 return syscall (__NR_set_mempolicy, mode, nodemask, maxnode);
40 return syscall (__NR_get_mempolicy, mode, nodemask, maxnode, addr, flags);
45 int *status,
int flags)
47 return syscall (__NR_move_pages, pid, count, pages, nodes, status, flags);
50 #ifndef HAVE_MEMFD_CREATE 54 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 getcpu(unsigned *cpu, unsigned *node)
static int get_mempolicy(int *mode, unsigned long *nodemask, unsigned long maxnode, void *addr, unsigned long flags)
vl_api_vxlan_gbp_api_tunnel_mode_t mode
static long move_pages(int pid, unsigned long count, void **pages, const int *nodes, int *status, int flags)