zap_huge_pmd(9)
π zap_huge_pmd(9) π
π NAME π
okay so this is the zap_huge_pmd(9) page from the Kernel API Manual, and the function is literally zap_huge_pmd β it zaps a huge THP which is of PMD size. That's the whole main-character job, periodt. β¨
π οΈ SYNOPSIS π οΈ
bool zap_huge_pmd (struct mmu_gather *tlb , struct vm_area_struct *vma ,
pmd_t *pmd , unsigned long addr );
π ARGUMENTS π
tlbβ the MMU gather TLB state associated with the operation. It's the vibe context for the zap, basically.vmaβ the VMA containing the range to zap.pmdβ a pointer to the leaf PMD entry. Leaf. PMD. Entry. Got it? πaddrβ the virtual address for the range to zap.
π₯ RETURN π₯
It gives you true on success, and false otherwise. That's it, bestie β no dramatic plot twist. β
π¦ SEE ALSO π¦
The page points at Kernel file ./mm/huge_memory.c, plus these lovely references:
vmf_insert_pfn_pmd(9)vmf_insert_pfn_pud(9)vmf_insert_folio_pud(9)touch_pmd(9)__split_unmapped_folio(9)folio_check_splittable(9)__folio_split(9)folio_split_unmapped(9)folio_split(9)min_order_for_split(9)
Catch you later, bestie! Source/version: ./mm. Date: October 2026. Footer title: zap_huge_pmd(9). Slay and stay huge π
ππ
π¦ 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