trace_ksm_remove_rmap_item(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… trace_ksm_remove_rmap_item(9) β€” a Kernel API Manual moment

okay bestie, welcome to section 9 of the Kernel API Manual, and yes we're literally talking about trace_ksm_remove_rmap_item today πŸŽ€


✨ NAME ✨

trace_ksm_remove_rmap_item β€” the hook that fires after an rmap_item has been yeeted out of the stable tree 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

void trace_ksm_remove_rmap_item (unsigned long pfn , void *rmap_item ,
void *mm );

that's the whole signature bestie, no cap 🫢


πŸ’– ARGUMENTS πŸ’–

  • pfn β€” the page frame number of the ksm page. like, which page we're talking about πŸ“„
  • rmap_item β€” the address of the rmap_item object. the actual star of the show ✨
  • mm β€” the address of the process mm struct. hi bestie's memory map πŸ‘‹

πŸ”₯ DESCRIPTION πŸ”₯

so basically this one lets you trace the removal of pages from the stable tree list πŸ‘‘ it's giving "watch the page leave the party" energy and honestly? iconic.


🌈 SEE ALSO 🌈

the whole ksm trace squad fr fr, go read them all πŸ’œ


aaand that's the page! this little love letter lives in ./include/trace/events, dated October 2026, and it's filed under trace_ksm_remove_rmap_item(9) in case you need to find it again πŸŽ€ mwah, go trace some pages bestie πŸ’…βœ¨

πŸ“¦ where this page comes from