panthor_vm_get_bo_for_va(9)
π panthor_vm_get_bo_for_va(9) π
okay so bestie, this is a page from the Kernel API Manual β welcome to the panthor zone π¦
β¨ NAME β¨
panthor_vm_get_bo_for_va β get the GEM object mapped at a virtual address π
πΈ SYNOPSIS πΈ
struct panthor_gem_object * panthor_vm_get_bo_for_va (struct panthor_vm
*vm , u64 va , u64 *bo_offset );
π ARGUMENTS π
vmβ the VM we're looking into, like your search bar but for GPU memory π«Άvaβ the virtual address to search for, the thing we're hunting down β¨bo_offsetβ the offset of the GEM object mapped at this virtual address. Heads up: this is only valid on success, so don't go reading it if things went sideways π
π₯ DESCRIPTION π₯
The object returned by this function might no longer be mapped when the function returns. Yeah, I know. It's giving "here's your answer but also maybe not."
It's the caller's responsibility to make sure there's no concurrent map/unmap operations making the returned value invalid β or to make sure it doesn't matter if the object is no longer mapped. Either way, bestie, that's on you π
no cap, this is a real caveat β the page literally says the mapping can vanish out from under you. Plan accordingly π
β RETURN β
A valid pointer on success, an ERR_PTR otherwise. That's it, that's the vibe check β
π¦ SEE ALSO π¦
First up, the source file to go look at: ./drivers/gpu/drm/panthor/panthor_mmu.c π
And a whole friend group of related structs and functions, all present and accounted for:
- struct
panthor_as_slot(9), structpanthor_mmu(9), structpanthor_vm_pool(9), structpanthor_vma(9), structpanthor_vm_op_ctx(9), structpanthor_vm(9), structpanthor_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_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_unmap_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)
and that's the whole page, bestie π this icon of a manpage lives under ./drivers/gpu/drm/panthor, dated October 2026 β slay, go read the rest of the panthor saga πβ¨
π¦ 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