folio_remove_rmap_pud(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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:


xoxo, this page came from ./mm and it's dated October 2026 β€” mwah πŸ’‹πŸŒΈ

πŸ“¦ where this page comes from