folio_add_file_rmap_pud(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the Kernel API Manual page for folio_add_file_rmap_pud(9) 🫢 this one is short, iconic, and lowkey all about adding a PUD mapping to a page range of a folio. let’s get into it πŸ’…

🌸 NAME 🌸

folio_add_file_rmap_pud β€” add a PUD mapping to a page range of a folio ✨

🌟 SYNOPSIS 🌟

void folio_add_file_rmap_pud (struct folio *folio , struct page *page ,
struct vm_area_struct *vma );

πŸŽ€ ARGUMENTS πŸŽ€

  • folio β€” the folio to add the mapping to πŸ’–
  • page β€” the first page to add πŸ¦‹
  • vma β€” the vm area in which the mapping is added 🌸

πŸ’« DESCRIPTION πŸ’«

the page range of the folio is defined by [page, page + HPAGE_PUD_NR) β€” yes, literally that range, bestie πŸ’…

🚨 the caller needs to hold the page table lock. that’s the requirement, no cap.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./mm/rmap.c β€” and here’s the whole friend group:


mwah πŸ’‹ this page came from ./mm, dated October 2026, and it’s the folio_add_file_rmap_pud(9) manual entry β€” bye bestie! πŸŽ€

πŸ“¦ where this page comes from