vm_normal_folio_pmd(9)
π
vm_normal_folio_pmd β the vm_normal_folio_pmd(9) glow-up
okay so bestie, this page lives in the Kernel API Manual and it's here to teach you how to get the struct folio that's hanging out with a PMD. it's short, it's sweet, it slays, let's go π«Ά
β¨ SYNOPSIS β¨
struct folio * vm_normal_folio_pmd (struct vm_area_struct *vma ,
unsigned long addr , pmd_t pmd );
like, literally the whole function signature. copy it exactly, don't @ me π
π ARGUMENTS π
vmaβ the VMA that's mapping the pmd. she's the vibe container π¦addrβ the address where the pmd is mapped. the where, iykyk πpmdβ the PMD. that's it, that's the argument π₯
πΈ DESCRIPTION πΈ
so what does she actually do? she gets the struct folio associated with a PTE π
and for the deets on what counts as a "normal" mapping vs. a "special" mapping β like, the whole lore β go peek at __vm_normal_page. that's where the details live, no cap β¨
π RETURN π
- returns the
struct folioif this is a "normal" mapping π - returns
NULLif this is a "special" mapping π
that's the whole return contract, periodt.
π SEE ALSO π
Kernel file ./mm/memory.c β and bestie, the friend group is huge, here's everyone:
free_pgd_range(9),free_pgtables(9),__vm_normal_page(9),vm_normal_page(9),vm_normal_folio(9),vm_normal_page_pmd(9),vm_normal_page_pud(9),restore_exclusive_pte(9),cond_install_uffd_wp_ptes(9),zap_vma_for_reaping(9),unmap_vmas(9),zap_vma_range_batched(9),zap_vma_range(9),zap_special_vma_range(9),vm_insert_pages(9),vm_insert_page(9),vm_map_pages(9),vm_map_pages_zero(9),vmf_insert_pfn_prot(9),vmf_insert_pfn(9),remap_pfn_range(9),vm_iomap_memory(9),__vmf_anon_prepare(9),finish_mkwrite_fault(9),unmap_mapping_folio(9),unmap_mapping_pages(9),unmap_mapping_range(9),set_pte_range(9),finish_fault(9),mm_account_fault(9),follow_pfnmap_start(9),follow_pfnmap_end(9),generic_access_phys(9),access_remote_vm(9),copy_remote_vm_str(9),folio_zero_user(9)
ngl that SEE ALSO section is giving "added everyone in the group chat" energy π but every single one of them is invited, so. π§
and that's the whole page, bestie! this one came out of ./mm and it's dated October 2026, still signing off as vm_normal_folio_pmd(9) β stay normal (mapping), stay iconic ππ
π¦ 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