• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This header was generated from the Linux kernel headers by update_headers.py,
3  * to provide necessary information from kernel to userspace, such as constants,
4  * structures, and macros, and thus, contains no copyrightable information.
5  */
6 #ifndef _UAPI_LINUX_MEMPOLICY_H
7 #define _UAPI_LINUX_MEMPOLICY_H
8 #include <linux/errno.h>
9 enum {
10 	MPOL_DEFAULT,
11 	MPOL_PREFERRED,
12 	MPOL_BIND,
13 	MPOL_INTERLEAVE,
14 	MPOL_LOCAL,
15 	MPOL_MAX,
16 };
17 #define MPOL_F_STATIC_NODES	(1 << 15)
18 #define MPOL_F_RELATIVE_NODES	(1 << 14)
19 #define MPOL_MODE_FLAGS	(MPOL_F_STATIC_NODES | MPOL_F_RELATIVE_NODES)
20 #define MPOL_F_NODE	(1<<0)
21 #define MPOL_F_ADDR	(1<<1)
22 #define MPOL_F_MEMS_ALLOWED (1<<2)
23 #define MPOL_MF_STRICT	(1<<0)
24 #define MPOL_MF_MOVE	 (1<<1)
25 #define MPOL_MF_MOVE_ALL (1<<2)
26 #define MPOL_MF_LAZY	 (1<<3)
27 #define MPOL_MF_INTERNAL (1<<4)
28 #define MPOL_MF_VALID	(MPOL_MF_STRICT   | 	\
29 			 MPOL_MF_MOVE     | 	\
30 			 MPOL_MF_MOVE_ALL)
31 #define MPOL_F_SHARED  (1 << 0)
32 #define MPOL_F_LOCAL   (1 << 1)
33 #define MPOL_F_MOF	(1 << 3)
34 #define MPOL_F_MORON	(1 << 4)
35 #endif
36