xref: /linux/include/uapi/linux/kernel-page-flags.h (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPILINUX_KERNEL_PAGE_FLAGS_H
3 #define _UAPILINUX_KERNEL_PAGE_FLAGS_H
4 
5 /*
6  * Stable page flag bits exported to user space
7  */
8 
9 #define KPF_LOCKED		0
10 #define KPF_ERROR		1	/* Now unused */
11 #define KPF_REFERENCED		2
12 #define KPF_UPTODATE		3
13 #define KPF_DIRTY		4
14 #define KPF_LRU			5
15 #define KPF_ACTIVE		6
16 #define KPF_SLAB		7
17 #define KPF_WRITEBACK		8
18 #define KPF_RECLAIM		9
19 #define KPF_BUDDY		10
20 
21 /* 11-20: new additions in 2.6.31 */
22 #define KPF_MMAP		11
23 #define KPF_ANON		12
24 #define KPF_SWAPCACHE		13
25 #define KPF_SWAPBACKED		14
26 #define KPF_COMPOUND_HEAD	15
27 #define KPF_COMPOUND_TAIL	16
28 #define KPF_HUGE		17
29 #define KPF_UNEVICTABLE		18
30 #define KPF_HWPOISON		19
31 #define KPF_NOPAGE		20
32 
33 #define KPF_KSM			21
34 #define KPF_THP			22
35 #define KPF_OFFLINE		23
36 #define KPF_ZERO_PAGE		24
37 #define KPF_IDLE		25
38 #define KPF_PGTABLE		26
39 
40 #endif /* _UAPILINUX_KERNEL_PAGE_FLAGS_H */
41