pvr_vm_context_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the pvr_file structure. 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
  • NULL on 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:


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