kernel-page-flags.h 915 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. * Stable page flag bits exported to user space
  6. */
  7. #define KPF_LOCKED 0
  8. #define KPF_ERROR 1
  9. #define KPF_REFERENCED 2
  10. #define KPF_UPTODATE 3
  11. #define KPF_DIRTY 4
  12. #define KPF_LRU 5
  13. #define KPF_ACTIVE 6
  14. #define KPF_SLAB 7
  15. #define KPF_WRITEBACK 8
  16. #define KPF_RECLAIM 9
  17. #define KPF_BUDDY 10
  18. /* 11-20: new additions in 2.6.31 */
  19. #define KPF_MMAP 11
  20. #define KPF_ANON 12
  21. #define KPF_SWAPCACHE 13
  22. #define KPF_SWAPBACKED 14
  23. #define KPF_COMPOUND_HEAD 15
  24. #define KPF_COMPOUND_TAIL 16
  25. #define KPF_HUGE 17
  26. #define KPF_UNEVICTABLE 18
  27. #define KPF_HWPOISON 19
  28. #define KPF_NOPAGE 20
  29. #define KPF_KSM 21
  30. #define KPF_THP 22
  31. #define KPF_BALLOON 23
  32. #define KPF_ZERO_PAGE 24
  33. #define KPF_IDLE 25
  34. #define KPF_PGTABLE 26
  35. #endif /* _UAPILINUX_KERNEL_PAGE_FLAGS_H */