1 #ifndef _LINUX_MEMPOLICY_H 2 #define _LINUX_MEMPOLICY_H 1 3 4 #include <linux/errno.h> 5 6 /* 7 * NUMA memory policies for Linux. 8 * Copyright 2003,2004 Andi Kleen SuSE Labs 9 */ 10 11 /* Policies */ 12 #define MPOL_DEFAULT 0 13 #define MPOL_PREFERRED 1 14 #define MPOL_BIND 2 15 #define MPOL_INTERLEAVE 3 16 17 #define MPOL_MAX MPOL_INTERLEAVE 18 19 /* Flags for get_mem_policy */ 20 #define MPOL_F_NODE (1<<0) /* return next IL mode instead of node mask */ 21 #define MPOL_F_ADDR (1<<1) /* look up vma using address */ 22 #define MPOL_F_MEMS_ALLOWED (1<<2) /* return allowed memories */ 23 24 /* Flags for mbind */ 25 #define MPOL_MF_STRICT (1<<0) /* Verify existing pages in the mapping */ 26 #define MPOL_MF_MOVE (1<<1) /* Move pages owned by this process to conform to mapping */ 27 #define MPOL_MF_MOVE_ALL (1<<2) /* Move every page to conform to mapping */ 28 #define MPOL_MF_INTERNAL (1<<3) /* Internal flags start here */ 29 30 31 #endif 32