__page_check_anon_rmap(9)
π
__page_check_anon_rmap β Kernel API Manual (section 9)
okay so bestie, this whole page is about one little function whose entire job is a sanity check anonymous rmap addition β¨ like, it's the vibe check for anonymous reverse mappings, and honestly? iconic of it.
π NAME π
__page_check_anon_rmap β sanity check anonymous rmap addition π
β¨ SYNOPSIS β¨
void __page_check_anon_rmap (const struct folio *folio , const struct
page *page , struct vm_area_struct *vma , unsigned long address );
that's the whole signature, no cap π«Ά
πΈ ARGUMENTS πΈ
folioβ The folio containingpage. it's the bigger container energy, the folio the page lives inside π¦pageβ the page to check the mapping of. yes queen, this is the actual page getting its mapping inspected πvmaβ the vm area in which the mapping is added. like, the memory region where the mapping is getting added in the first place πaddressβ the user virtual address mapped. the address, but from the user's side of things π
π¦ SEE ALSO π¦
so the kernel file is ./mm/rmap.c and honestly the whole friend group is here, go say hi π«Ά
__anon_vma_prepare(9)anon_vma_clone(9)unlink_anon_vmas(9)page_address_in_vma(9)folio_referenced(9)mapping_wrprotect_range(9)pfn_mkclean_range(9)folio_move_anon_rmap(9)__folio_set_anon(9)folio_add_anon_rmap_ptes(9)folio_add_anon_rmap_pmd(9)folio_add_new_anon_rmap(9)folio_add_file_rmap_ptes(9)folio_add_file_rmap_pmd(9)folio_add_file_rmap_pud(9)folio_remove_rmap_ptes(9)folio_remove_rmap_pmd(9)folio_remove_rmap_pud(9)try_to_unmap(9)try_to_migrate(9)make_device_exclusive(9)__rmap_walk_file(9)
like, the entire rmap friend group showed up to the group chat ππ every single one of them, we love a full roster π
lowkey reminder: this is a sanity check bestie β it's not here to do the mapping, it's here to make sure the mapping makes sense. don't ask it to carry the whole rmap workload, that's not its main character arc π
and that's the page!! π§π this little slice of the Kernel API Manual comes from ./mm, dated October 2026, and it's literally the __page_check_anon_rmap(9) page, periodt. bye bestie, go check some rmap additions responsibly β¨πΈ
π¦ 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