STRUCT KSM_SCAN(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct ksm_scan(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’– this one's a little struct called ksm_scan and honestly? it's giving main character energy for the whole scan loop. let's get into it πŸŽ€


🌸 NAME 🌸

struct ksm_scan β€” literally just a cursor for scanning πŸ–±οΈβœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct ksm_scan {
    struct ksm_mm_slot *mm_slot;
    unsigned long address;
    struct ksm_rmap_item **rmap_list;
    unsigned long seqnr;
 };

πŸ’… Members πŸ’…

  • mm_slot β€” the current mm_slot we are scanning, like the one we're on rn πŸ‘€
  • address β€” the next address inside that to be scanned, i.e. where we're headed next πŸ—ΊοΈ
  • rmap_list β€” link to the next rmap to be scanned in the rmap_list, the whole chain sitch πŸ”—
  • seqnr β€” count of completed full scans (needed when removing unstable node) πŸ”’ no cap, this one matters when unstable nodes are getting yeeted

⭐ Description ⭐

There is only the one ksm_scan instance of this cursor structure. one. single. icon. πŸ‘‘ not a crowd, not a collection, just the one, periodt πŸ’€


🌈 SEE ALSO 🌈

go read them, they're all iconique 🫢


πŸ’– and that's the whole page bestie, no filler, no gatekeeping, every member accounted for ✨

okay so this lives in ./mm, and it's stamped October 2026 β€” so mark your calendars fr fr πŸ—“οΈπŸ’œ love u, bye! πŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from