zap_vma_range(9)
πΈ zap_vma_range(9) β the "nuke this range" girlie of the kernel API manual πΈ
okay so bestie, welcome to zap_vma_range from the Kernel API Manual β this is the (9) section, iykyk π
β¨ SYNOPSIS β¨
void zap_vma_range (struct vm_area_struct *vma , unsigned long address ,
unsigned long size );
like, the whole thing in one line: you hand it a vma, an address, a size, and it zaps β¨
π ARGUMENTS π
vmaβ the vma that covers the range you're about to zap, bestie. it's giving "the container of the carnage" π«Άaddressβ the starting address of the range to zap. where the zapping begins, periodt πsizeβ number of bytes to zap. yes, in bytes, not vibes π
π DESCRIPTION π
okay so the one rule, the main character rule: the provided address range must be fully contained within vma. like, fully. no half-in-half-out nonsense, no "close enough" π
that's literally it, that's the description, and it ate π₯
no cap: if your range isn't entirely insidevma, you're not in the vibe check. the manpage says must be fully contained withinvmaβ and we respect the boundaries π
π SEE ALSO π
so like, here's the entire friend group, all of them, no one left out:
Kernel file ./mm/memory.c π
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), 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_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) β
π¦ the cute lil sign-off π¦
this icon lives in ./mm π and the page is dated October 2026 β¨ so like, bookmark it, cite it, print it out and put it on your wall β zap_vma_range(9), slay π
ππ
go zap something (fully contained in a vma, obviously) π«Ά
π¦ 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