pvr_vm_find_gem_object(9)
π NAME π
okay so this is pvr_vm_find_gem_object(9), straight out of the Kernel API Manual, and it's literally about how to look up a buffer object from a given device-virtual address. bestie, it's giving "find the thing that lives at this virtual address" energy β¨
pvr_vm_find_gem_object β look up a buffer object from a given device-virtual address.
β¨ SYNOPSIS β¨
struct pvr_gem_object * pvr_vm_find_gem_object (struct pvr_vm_context
*vm_ctx , u64 device_addr , u64 *mapped_offset_out , u64
*mapped_size_out );
π ARGUMENTS π
vm_ctxβ[IN]the target VM context. like, the context you're doing the lookup in, bestie.device_addrβ[IN]virtual device address at the start of the required object. this is the address you're investigating πmapped_offset_outβ[OUT]pointer to the location where the offset of the start of the mapped region within the buffer object gets written. it may beNULLif you don't need this info.mapped_size_outβ[OUT]pointer to the location where the size of the mapped region gets written. also may beNULLif you don't need this info.
π¦ DESCRIPTION π¦
so if this succeeds, a reference is taken on the buffer object. that means you, the caller, have to drop that reference with pvr_gem_object_put β no ghosting your refs, okay? π
πΈ RETURN πΈ
- The PowerVR buffer object mapped at
device_addrif one exists, or NULLotherwise.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/imagination/pvr_vm.c Memory context(9)struct pvr_vm_context(9)pvr_vm_get_page_table_root_addr(9)pvr_vm_get_dma_resv(9)Memory mappings(9)struct pvr_vm_gpuva(9)struct pvr_vm_bind_op(9)pvr_vm_bind_op_exec(9)pvr_vm_gpuva_map(9)pvr_vm_gpuva_unmap(9)pvr_vm_gpuva_remap(9)pvr_device_addr_is_valid(9)pvr_device_addr_and_size_are_valid(9)pvr_vm_create_context(9)pvr_vm_context_release(9)pvr_vm_context_lookup(9)pvr_vm_context_put(9)pvr_destroy_vm_contexts_for_file(9)pvr_vm_map(9)pvr_vm_unmap_obj_locked(9)pvr_vm_unmap_obj(9)pvr_vm_unmap(9)pvr_vm_unmap_all(9)pvr_heap_contains_range(9)pvr_find_heap_containing(9)pvr_vm_get_fw_mem_context(9)
This iconic page lives in ./drivers/gpu/drm/imagination in the Kernel API Manual, dated October 2026 π«Ά go forth and drop those refs, bestie π
π¦ 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