Debian Codegraph @

upstream/debian-unstable/man5/proc_kpageflags.5

raw
1 '\" t
2 .\" Copyright 1994-1995, Daniel Quinlan <[email protected]>
3 .\" Copyright 2002-2017, Michael Kerrisk <[email protected]>
4 .\" Copyright, the authors of the Linux man-pages project
5 .\"
6 .\" SPDX-License-Identifier: GPL-3.0-or-later
7 .\"
8 .TH proc_kpageflags 5 2026-02-08 "Linux man-pages 6.18"
9 .SH NAME
10 /proc/kpageflags \- physical pages frame masks
11 .SH DESCRIPTION
12 .TP
13 .IR /proc/kpageflags " (since Linux 2.6.25)"
14 This file contains 64-bit masks corresponding to each physical page frame;
15 it is indexed by page frame number (see the discussion of
16 .IR /proc/ pid /pagemap ).
17 The bits are as follows:
18 .RS
19 .IP
20 .TS
21 r l l l.
22 0 - KPF_LOCKED
23 1 - KPF_ERROR
24 2 - KPF_REFERENCED
25 3 - KPF_UPTODATE
26 4 - KPF_DIRTY
27 5 - KPF_LRU
28 6 - KPF_ACTIVE
29 7 - KPF_SLAB
30 8 - KPF_WRITEBACK
31 9 - KPF_RECLAIM
32 10 - KPF_BUDDY
33 11 - KPF_MMAP (since Linux 2.6.31)
34 12 - KPF_ANON (since Linux 2.6.31)
35 13 - KPF_SWAPCACHE (since Linux 2.6.31)
36 14 - KPF_SWAPBACKED (since Linux 2.6.31)
37 15 - KPF_COMPOUND_HEAD (since Linux 2.6.31)
38 16 - KPF_COMPOUND_TAIL (since Linux 2.6.31)
39 17 - KPF_HUGE (since Linux 2.6.31)
40 18 - KPF_UNEVICTABLE (since Linux 2.6.31)
41 19 - KPF_HWPOISON (since Linux 2.6.31)
42 20 - KPF_NOPAGE (since Linux 2.6.31)
43 21 - KPF_KSM (since Linux 2.6.32)
44 22 - KPF_THP (since Linux 3.4)
45 23 - KPF_BALLOON (since Linux 3.18)
46 .\" KPF_BALLOON: commit 09316c09dde33aae14f34489d9e3d243ec0d5938
47 24 - KPF_ZERO_PAGE (since Linux 4.0)
48 .\" KPF_ZERO_PAGE: commit 56873f43abdcd574b25105867a990f067747b2f4
49 25 - KPF_IDLE (since Linux 4.3)
50 .\" KPF_IDLE: commit f074a8f49eb87cde95ac9d040ad5e7ea4f029738
51 26 - KPF_PGTABLE (since Linux 4.18)
52 .\" KPF_PGTABLE: commit 1d40a5ea01d53251c23c7be541d3f4a656cfc537
53 .TE
54 .RE
55 .IP
56 For further details on the meanings of these bits,
57 see the kernel source file
58 .IR Documentation/admin\-guide/mm/pagemap.rst .
59 Before Linux 2.6.29,
60 .\" commit ad3bdefe877afb47480418fdb05ecd42842de65e
61 .\" commit e07a4b9217d1e97d2f3a62b6b070efdc61212110
62 .BR KPF_WRITEBACK ,
63 .BR KPF_RECLAIM ,
64 .BR KPF_BUDDY ,
65 and
66 .B KPF_LOCKED
67 did not report correctly.
68 .IP
69 The
70 .I /proc/kpageflags
71 file is present only if the
72 .B CONFIG_PROC_PAGE_MONITOR
73 kernel configuration option is enabled.
74 .SH SEE ALSO
75 .BR proc (5)