• 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_MMAN_H
7 #define _UAPI_LINUX_MMAN_H
8 #include <asm/mman.h>
9 #include <asm-generic/hugetlb_encode.h>
10 #define MREMAP_MAYMOVE	1
11 #define MREMAP_FIXED	2
12 #define OVERCOMMIT_GUESS		0
13 #define OVERCOMMIT_ALWAYS		1
14 #define OVERCOMMIT_NEVER		2
15 #define MAP_HUGE_SHIFT	HUGETLB_FLAG_ENCODE_SHIFT
16 #define MAP_HUGE_MASK	HUGETLB_FLAG_ENCODE_MASK
17 #define MAP_HUGE_64KB	HUGETLB_FLAG_ENCODE_64KB
18 #define MAP_HUGE_512KB	HUGETLB_FLAG_ENCODE_512KB
19 #define MAP_HUGE_1MB	HUGETLB_FLAG_ENCODE_1MB
20 #define MAP_HUGE_2MB	HUGETLB_FLAG_ENCODE_2MB
21 #define MAP_HUGE_8MB	HUGETLB_FLAG_ENCODE_8MB
22 #define MAP_HUGE_16MB	HUGETLB_FLAG_ENCODE_16MB
23 #define MAP_HUGE_32MB	HUGETLB_FLAG_ENCODE_32MB
24 #define MAP_HUGE_256MB	HUGETLB_FLAG_ENCODE_256MB
25 #define MAP_HUGE_512MB	HUGETLB_FLAG_ENCODE_512MB
26 #define MAP_HUGE_1GB	HUGETLB_FLAG_ENCODE_1GB
27 #define MAP_HUGE_2GB	HUGETLB_FLAG_ENCODE_2GB
28 #define MAP_HUGE_16GB	HUGETLB_FLAG_ENCODE_16GB
29 #endif
30