vm_normal_page_pud(9)
π NAME π
vm_normal_page_pud β the girl whose whole job is grabbing the "struct page" that's linked up with a PUD π«Ά
So like, if you're ever sitting there wondering "hiii which struct page is this PUD dating," this function is literally your answer. periodt.
β¨ SYNOPSIS β¨
struct page * vm_normal_page_pud (struct vm_area_struct *vma , unsigned
long addr , pud_t pud );
Yeah bestie, that's the whole signature β three arguments in, one struct page * out. Slay. π
π ARGUMENTS π
vmaβ the VMA that's out here mapping the pud. It's giving "the context, the backstory, the whole vibe." π¦addrβ the address where the pud is mapped. Like, where is this thing living. πpudβ the PUD. That's it, that's the argument. iconic. π
πΈ DESCRIPTION πΈ
Okay so the entire mission here is: get the "struct page" that's associated with a PUD. That's the whole thing. β¨
Now, if you wanna know what makes a mapping "normal" versus "special" β like, the actual lore, the deep background β you gotta go read __vm_normal_page for those details. This page isn't gonna spell it out for you, and honestly? Respect. iykyk. π§
π RETURN π
- Returns the
"struct page"if this is a"normal"mapping. π - Returns
NULLif this is a"special"mapping. π
So basically a vibe check: normal β you get a page, special β you get NULL, no cap.
π SEE ALSO π
Bestie. Sit down. This list is long and I need you to know it's all here, every single one, exactly like it was given to me. Not me dropping the entire friend group. π
Kernel file ./mm/memory.c, plus:
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_folio_pmd(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)
Like, that's the whole group chat, every single member, no one left on read. π«Άπ₯
Okay that's the page!! π This little masterpiece lives over in ./mm, and it's dated October 2026 β so yeah, she's current, she's fresh, she ate. Go forth and find your pages, 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