gmap_helper_zap_one_page(9)
π gmap_helper_zap_one_page(9) π
okay so bestie, welcome to the gmap_helper_zap_one_page(9) page β that's the kernel API manual, and yes it's as niche as it sounds, but we're gonna slay this together π«Ά
β¨ NAME β¨
gmap_helper_zap_one_page β discard a page if it was swapped.
πΈ SYNOPSIS πΈ
void gmap_helper_zap_one_page (struct mm_struct *mm , unsigned long
vmaddr );
π ARGUMENTS π
mmβ the mm. that's it. that's the whole description. she's mysterious, she's iconic, she's the mm πvmaddrβ the userspace virtual address that needs to be discarded π₯
π¦ DESCRIPTION π¦
so here's the vibe check: if the given address maps to a swap entry, discard it. periodt. no cap, that's literally the whole thing β¨
π CONTEXT π
β οΈ bestie listen β this needs to be called while holding the mmap lock. not optional. do not skip this. fr fr π
π SEE ALSO π
- Kernel file
./arch/s390/mm/gmap_helpers.ctry_get_locked_pte(9) gmap_helper_discard(9)gmap_helper_try_set_pte_unused(9)gmap_helper_disable_cow_sharing(9)
go read those too, they're giving main character energy too π
and that's the whole page!! mwah π this came to you from ./arch/s390/mm, dated October 2026, and it's gmap_helper_zap_one_page(9) out π π π¦ πΈ
π¦ 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