linux/include/uapi/linux/kernel-page-flags.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _UAPILINUX_KERNEL_PAGE_FLAGS_H
#define _UAPILINUX_KERNEL_PAGE_FLAGS_H

/*
 * Stable page flag bits exported to user space
 */

#define KPF_LOCKED
#define KPF_ERROR
#define KPF_REFERENCED
#define KPF_UPTODATE
#define KPF_DIRTY
#define KPF_LRU
#define KPF_ACTIVE
#define KPF_SLAB
#define KPF_WRITEBACK
#define KPF_RECLAIM
#define KPF_BUDDY

/* 11-20: new additions in 2.6.31 */
#define KPF_MMAP
#define KPF_ANON
#define KPF_SWAPCACHE
#define KPF_SWAPBACKED
#define KPF_COMPOUND_HEAD
#define KPF_COMPOUND_TAIL
#define KPF_HUGE
#define KPF_UNEVICTABLE
#define KPF_HWPOISON
#define KPF_NOPAGE

#define KPF_KSM
#define KPF_THP
#define KPF_OFFLINE
#define KPF_ZERO_PAGE
#define KPF_IDLE
#define KPF_PGTABLE

#endif /* _UAPILINUX_KERNEL_PAGE_FLAGS_H */