zap_vma_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 inside vma, you're not in the vibe check. the manpage says must be fully contained within vma β€” 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