pvr_ioctl_destroy_context(9)
π pvr_ioctl_destroy_context β the Kernel API Manual, bestie edition π
Okay so this is a page from the Kernel API Manual for pvr_ioctl_destroy_context(9), and honestly? It's a tiny little page but it does something iconic: it kills a context. Rude? Maybe. Necessary? Absolutely. Let's get into it. β¨
πΈ NAME πΈ
pvr_ioctl_destroy_context β the IOCTL that says "bye bestie" to a context, no cap π«Ά
β SYNOPSIS β
int pvr_ioctl_destroy_context (struct drm_device *drm_dev , void
*raw_args , struct drm_file *file );
Literally three args, one int back. Clean, minimal, main character energy. π
π¦ ARGUMENTS π¦
drm_devβ[IN]the DRM device. That's the hardware baddie this whole thing lives on. π₯οΈraw_argsβ[IN/OUT]the arguments passed to this IOCTL. Heads up: this must be of typestruct drm_pvr_ioctl_destroy_context_argsβ like, non-negotiable, that's the whole vibe check. πfileβ[IN]the DRM file private data. The little personal stash that belongs to whoever opened the file. π
π§ DESCRIPTION π§
So this one is short and sweet: it gets called from userspace with DRM_IOCTL_PVR_DESTROY_CONTEXT. That's it. That's the whole description. It's giving "confident, mysterious, doesn't over-explain" and I respect it. π
π RETURN π
0on success β slay, it worked, everyone go home π-EINVALif the context is not in the context list β like, bestie, that context does not exist, what do you want from me π
π₯ SEE ALSO π₯
Big friend-group energy here, so let me list everyone β no gatekeeping:
- Kernel file
./drivers/gpu/drm/imagination/pvr_drv.c - PowerVR (Series 6 and later) and IMG Graphics Driver(9)
pvr_ioctl_create_bo(9)pvr_ioctl_get_bo_mmap_offset(9)pvr_dev_query_gpu_info_get(9)pvr_dev_query_runtime_info_get(9)pvr_dev_query_quirks_get(9)pvr_dev_query_enhancements_get(9)pvr_ioctl_dev_query(9)pvr_ioctl_create_context(9)pvr_ioctl_create_free_list(9)pvr_ioctl_destroy_free_list(9)pvr_ioctl_create_hwrt_dataset(9)pvr_ioctl_destroy_hwrt_dataset(9)pvr_ioctl_create_vm_context(9)pvr_ioctl_destroy_vm_context(9)pvr_ioctl_vm_map(9)pvr_ioctl_vm_unmap(9)pvr_drm_driver_open(9)pvr_drm_driver_postclose(9)
Note the matching pvr_ioctl_create_context(9) up there β create and destroy, a matched set, we love a duality. π¦
And that's the whole page, bestie β short, sweet, and fully fact-checked. This gem lives in ./drivers/gpu/drm/imagination, dated October 2026, and it's part of the pvr_ioctl_destroy_context(9) manual. Go forth and destroy your contexts responsibly. πβ¨π
π¦ 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