1GET_MEMPOLICY(2)              System Calls Manual             GET_MEMPOLICY(2)
2
3
4

NAME

6       get_mempolicy - get the current process' or memory address' NUMA policy
7

SYNOPSIS

9       int sys_get_mempolicy (int *policy, unsigned long *nmask, unsigned
10                        long maxnode, unsigned long addr, unsigned
11                        long flags);
12
13

DESCRIPTION

15       get_mempolicy  retrieves  the  NUMA  policy of the current process or a
16       memory address specified by addr. The memory policy defines which  node
17       memory  is allocated to for the process. The policy is stored in policy
18       when non-zero, with an associated nmask. maxnode  is  the  maximum  bit
19       number plus one that can be stored into nmask. The bit number is round‐
20       ed to a multiple of unsigned long. The only valid value other than zero
21       for  flags  is  MPOL_F_ILNODE. This value is only valid when the policy
22       being retrieved is MPOL_INTERLEAVE. When this flag is specified, an un‐
23       signed  long  with the next node that would be used for interleaving is
24       returned in nodemask.
25
26

RETURN VALUE

28       get_mempolicy returns 0 on success; otherwise, it returns  one  of  the
29       errors listed in the "Errors" section.
30
31

ERRORS

33       -EINVAL
34              An illegal parameter was passed in.
35
36
37       -EFAULT
38              Invalid memory area accessed.
39
40

SEE ALSO

42       mbind(2), set_mempolicy(2) numa(3) numactl(8)
43
44       Note:  the numa(3) and numactl(8) man pages are not include in the man-
45       pages package. They are available via the numactl-x.x.tar.gz package.
46
47
48

AUTHOR

50       Niki Rahimi.
51
52
53
54                                                              GET_MEMPOLICY(2)
Impressum