pvr_vm_create_context(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

pvr_vm_create_context β€” create a new VM context. This is the pvr_vm_create_context(9) page from the Kernel API Manual, and yes bestie, we're getting into the VM-context lore πŸ’–

✨ SYNOPSIS ✨

okay so the signature is literally:

struct pvr_vm_context * pvr_vm_create_context (struct pvr_device
*pvr_dev , bool is_userspace_context );

πŸ’… ARGUMENTS πŸ’…

  • pvr_dev β€” the target PowerVR device, i.e. the device you're creating this context for 🫢
  • is_userspace_context β€” true if this context is for userspace. This will create a firmware memory context for the VM context and disable warnings when tearing down mappings. slay.

🫢 RETURN 🫢

Here's the vibe check on what comes back:

  • A handle to the newly-minted VM context on success,
  • -EINVAL if the feature "virtual address space bits" on pvr_dev is missing or has an unsupported value,
  • -ENOMEM if allocation of the structure behind the opaque handle fails, or
  • Any error encountered while setting up internal structures.

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, no cap:


mwah πŸ’‹ source/version: ./drivers/gpu/drm/imagination; date: October 2026. byeee bestie, go create that VM context 🫢✨

πŸ“¦ where this page comes from