folio_remove_rmap_pud(9)
π¦ folio_remove_rmap_pud(9) π¦
okay bestie, welcome to the Kernel API Manual entry for folio_remove_rmap_pud(9) β we're literally removing a PUD mapping from a page range of a folio, and it's giving kernel-core main character energy π
β¨
πΈ NAME πΈ
folio_remove_rmap_pud β remove a PUD mapping from a page range of a folio π«Ά
β¨ SYNOPSIS β¨
void folio_remove_rmap_pud (struct folio *folio , struct page *page , struct vm_area_struct *vma );
π ARGUMENTS π
folioβ the folio you're removing the mapping from, bestie πpageβ the first page to remove πvmaβ the vm area from which the mapping is removed β¨
π DESCRIPTION π
so the page range of the folio is defined by [page, page + HPAGE_PUD_NR) β that's the exact range, no cap π
β οΈ the caller needs to hold the page table lock. like, actually hold it. π
π₯ SEE ALSO π₯
Kernel file ./mm/rmap.c is the spot, and the whole friend group is here:
__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)__page_check_anon_rmap(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)try_to_unmap(9)try_to_migrate(9)make_device_exclusive(9)__rmap_walk_file(9)
xoxo, this page came from ./mm and it's dated October 2026 β mwah ππΈ
π¦ 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