pvr_vm_context_lookup(9)
π pvr_vm_context_lookup(9) π
okay so this is a page straight out of the Kernel API Manual, bestie β yes, the Kernel API Manual, we're literally reading kernel docs together, this is our bonding era β¨
πΈ NAME πΈ
pvr_vm_context_lookup β look up a VM context from a handle π
π¦ SYNOPSIS π¦
struct pvr_vm_context * pvr_vm_context_lookup (struct pvr_file *pvr_file
, u32 handle );
π ARGUMENTS π
pvr_fileβ a pointer to thepvr_filestructure. yeah. it's a pointer to a struct. iconic of it π€handleβ the object handle. the little name-tag for the thing you're hunting for π«
β¨ DESCRIPTION β¨
so what it does: it takes a reference on the VM context object. that's it, that's the whole bit π
and because we don't do leaks in this household, you gotta call pvr_vm_context_put to release it. no cap β take a ref, give the ref back. balance. harmony. main character energy π
fr fr do not forget the pvr_vm_context_put, bestie. the ref is yours now, and it's your responsibility π
π RETURN π
- the requested object on success π or
NULLon failure (either the object does not exist in the list, or it's not a VM context β rude of it, honestly π)
π«Ά SEE ALSO π«Ά
Kernel file ./drivers/gpu/drm/imagination/pvr_vm.c, plus all these besties:
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_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_find_gem_object(9)pvr_vm_get_fw_mem_context(9)
and that's the whole page, bestie π§π this one lives at ./drivers/gpu/drm/imagination and it's dated October 2026 β yes, the future, we're ahead of schedule π
β¨ slay, go call pvr_vm_context_put π
π¦ 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