folio_dup_file_rmap_ptes(9)
π NAME π
okay so bestie, welcome to the Kernel API Manual page for folio_dup_file_rmap_ptes(9) β the main character energy here is all about duplicating PTE mappings of a page range of a folio. That's the whole vibe, periodt. π
β¨ SYNOPSIS β¨
void folio_dup_file_rmap_ptes (struct folio *folio , struct page *page ,
int nr_pages , struct vm_area_struct *dst_vma );
π ARGUMENTS π
folioβ the folio to duplicate the mappings of. π¦pageβ the first page to duplicate the mappings of. πΈnr_pagesβ the number of pages of which the mapping will be duplicated. β¨dst_vmaβ the destination vm area. π
π DESCRIPTION π
The page range of the folio is defined by [page, page + nr_pages) β that's literally the exact interval, no cap. π«Ά
π¨ heads up, bestie: the caller needs to hold the page table lock. fr fr, that's a thing.
π SEE ALSO π
Kernel file ./include/linux/rmap.h β and the related-iconic crew is:
folio_dup_file_rmap_pmd(9)folio_try_dup_anon_rmap_ptes(9)folio_try_dup_anon_rmap_pmd(9)folio_try_share_anon_rmap_pte(9)folio_try_share_anon_rmap_pmd(9)page_vma_mapped_walk_restart(9)
mwah π cute little sign-off time: this page is sourced from ./include/linux, dated October 2026, and yes bestie, the page name stays folio_dup_file_rmap_ptes(9) β slay. π
π¦ 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