zap_huge_pmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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