STRUCT KHUGEPAGED_SCAN(9)
π struct khugepaged_scan(9) π
okay so bestie, welcome to the Kernel API Manual β today's main character is struct khugepaged_scan, and honestly? it's giving "humble little cursor that runs the whole scan vibe." let's get into it β¨
πΈ NAME πΈ
struct khugepaged_scan β the cursor for scanning, periodt π
π¦ SYNOPSIS π¦
struct khugepaged_scan {
struct list_head mm_head;
struct mm_slot *mm_slot;
unsigned long address;
};
like, that's the whole struct. three fields. no notes. iconic π
π Members π
mm_headβ the head of the mm list we're scanning π«Ά like, the starting point of the whole lineup.mm_slotβ the currentmm_slotwe are scanning right now, live, in this moment π«addressβ the next address inside that to be scanned π lowkey the bookmark of where we're at.
π Description π
ngl, there is only the one khugepaged_scan instance of this cursor structure. one. singular. main character energy, no ensemble cast πβ¨
π SEE ALSO π
Kernel file ./mm/khugepaged.c is the home base, and it's bringing the whole friend group:
collapse_max_ptes_none(9)collapse_max_ptes_shared(9)collapse_max_ptes_swap(9)collapse_pte_mapped_thp(9)collapse_file(9)
π reminder bestie: those (9) refs are real, don't come for me, I copied them exactly fr fr.
okay that's the whole page!! π§π this one lives in ./mm and the version/date stamp says October 2026 β so yeah, mark your calendar, screenshot it, send it to the group chat, and slay your day bestie πΈππ¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms