diff options
| author | Zenghui Yu <zenghui.yu@linux.dev> | 2026-06-27 00:27:10 +0800 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2026-07-15 10:51:27 -0600 |
| commit | 711719631f4628383a1f2d28002dae72890d3386 (patch) | |
| tree | 4d1d76f9f2ff2c7bebbdc2b450518bb3160a9bb5 /tools/lib/python | |
| parent | d1bb6502294ead503abf49234368fe10c2f0e18d (diff) | |
docs: pagemap: fix flags location, member name and sample code
The userland visible page flags (KPF_*) were initially moved to
include/linux/kernel-page-flags.h in commit 1a9b5b7fe0c5 ("mm: export
stable page flags"), and later moved to
include/uapi/linux/kernel-page-flags.h in commit 607ca46e97a1 ("UAPI:
(Scripted) Disintegrate include/linux"). Update the doc to reflect the
current location of these flags.
The member @walk_end of struct pm_scan_arg {} was wrongly written as
"end_walk".
The first sample code of the PAGEMAP_SCAN ioctl wrongly used the
PM_SCAN_CHECK_WPASYNC flag twice, instead of the PM_SCAN_WP_MATCHING flag.
The second one included the wrong category in the required mask -
PAGE_IS_FILE should be used instead of PAGE_IS_SWAPPED as per the
intention.
Fix them all together.
Signed-off-by: Zenghui Yu <zenghui.yu@linux.dev>
Reviewed-by: Lorenzo Stoakes <ljs@kernel.org>
Reviewed-by: SeongJae Park <sj@kernel.org>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260626162710.25844-1-zenghui.yu@linux.dev>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
