folio_add_file_rmap_pud(9)
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:
__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_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)
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
- 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