16 #ifndef included_linux_syscall_h 17 #define included_linux_syscall_h 20 #include <sys/syscall.h> 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)
vl_api_tunnel_mode_t mode
static int get_mempolicy(int *mode, unsigned long *nodemask, unsigned long maxnode, void *addr, unsigned long flags)
vlib_main_t vlib_node_runtime_t * node
static long move_pages(int pid, unsigned long count, void **pages, const int *nodes, int *status, int flags)