2 * SYSCALL_DEFINE5(get_mempolicy, int __user *, policy,
3 unsigned long __user *, nmask, unsigned long, maxnode,
4 unsigned long, addr, unsigned long, flags)
7 #define MPOL_F_NODE (1<<0) /* return next IL mode instead of node mask */
8 #define MPOL_F_ADDR (1<<1) /* look up vma using address */
9 #define MPOL_F_MEMS_ALLOWED (1<<2) /* return allowed memories */
13 struct syscallentry syscall_get_mempolicy
= {
14 .name
= "get_mempolicy",
17 .arg1type
= ARG_ADDRESS
,
19 .arg2type
= ARG_ADDRESS
,
20 .arg3name
= "maxnode",
21 .arg3type
= ARG_RANGE
,
23 .hi3range
= 1 << 9, /* 1 << CONFIG_NODES_SHIFT */
25 .arg4type
= ARG_ADDRESS
,
30 .values
= { MPOL_F_NODE
, MPOL_F_ADDR
, MPOL_F_MEMS_ALLOWED
},
32 .rettype
= RET_ZERO_SUCCESS
,