trace_ksm_remove_rmap_item(9)
π 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 thermap_itemobject. the actual star of the show β¨mmβ the address of the processmmstruct. 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 π
- Kernel file
./include/trace/events/ksm.h trace_ksm_start_scan(9)trace_ksm_stop_scan(9)trace_ksm_enter(9)trace_ksm_exit(9)trace_ksm_merge_one_page(9)trace_ksm_merge_with_ksm_page(9)trace_ksm_remove_ksm_page(9)trace_ksm_advisor(9)
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
- 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