panthor_vm_unmap_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… panthor_vm_unmap_range(9) β€” the Kernel API Manual glow-up ✨

okay so welcome to the Kernel API Manual, bestie πŸŽ€ this is panthor_vm_unmap_range(9) and she's here to unmap a little slice of your VA space. short page, but don't sleep on her.


✨ NAME ✨

panthor_vm_unmap_range β€” literally unmaps a portion of the VA space πŸ¦‹


🫢 SYNOPSIS 🫢

int panthor_vm_unmap_range (struct panthor_vm *vm , u64 va , u64 size );

πŸ’– ARGUMENTS πŸ’–

  • vm β€” the VM you're unmapping the region from. like, the whole vibe check of a virtual memory space πŸ’…
  • va β€” the virtual address to unmap. must be 4k aligned, no cap. don't come in here with your unaligned nonsense βœ‹
  • size β€” how big the region you're unmapping is. also must be 4k aligned, periodt. both of them. aligned. 😀

🌸 DESCRIPTION 🌸

so this one's internal use only πŸ‘‘ it's giving "backstage pass, not for the customers."

if you're handling userspace requests, do not just call this β€” use panthor_vm_bind_exec_sync_op instead, iykyk 🌈


⭐ RETURN ⭐

0 on success, and a negative error code if it's not. literally that's it 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group shows up for this one, no gatekeeping:

Kernel file ./drivers/gpu/drm/panthor/panthor_mmu.c

struct panthor_as_slot(9), struct panthor_mmu(9), struct panthor_vm_pool(9), struct panthor_vma(9), struct panthor_vm_op_ctx(9), struct panthor_vm(9), struct panthor_vm_bind_job(9), alloc_pt(9), free_pt(9), panthor_vm_has_unhandled_faults(9), panthor_vm_is_unusable(9), panthor_vm_active(9), panthor_vm_idle(9), panthor_vm_as(9), panthor_vm_alloc_va(9), panthor_vm_free_va(9), panthor_vm_get_bo_for_va(9), panthor_vm_pool_create_vm(9), panthor_vm_pool_destroy_vm(9), panthor_vm_pool_get_vm(9), panthor_vm_pool_destroy(9), panthor_vm_pool_create(9), panthor_mmu_suspend(9), panthor_mmu_resume(9), panthor_mmu_pre_reset(9), panthor_mmu_post_reset(9), panthor_vm_put(9), panthor_vm_get(9), panthor_vm_get_heap_pool(9), panthor_vm_heaps_sizes(9), panthor_vm_resv(9), panthor_vm_bind_job_put(9), panthor_vm_create(9), panthor_vm_bind_job_create(9), panthor_vm_bind_job_prepare_resvs(9), panthor_vm_bind_job_update_resvs(9), panthor_vm_bind_exec_sync_op(9), panthor_vm_map_bo_range(9), panthor_vm_prepare_mapped_bos_resvs(9), panthor_mmu_unplug(9), panthor_mmu_init(9), panthor_mmu_debugfs_init(9), panthor_mmu_pt_cache_init(9), panthor_mmu_pt_cache_fini(9)


mwah πŸ’‹ that's the whole page β€” brought to you by ./drivers/gpu/drm/panthor, October 2026, aka the panthor_vm_unmap_range(9) era. slay, stay aligned, bye bestie πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from