STRUCT KHUGEPAGED_SCAN(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 current mm_slot we 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:


πŸ’€ 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