pvr_ioctl_destroy_context(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 type struct 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 πŸ’€

  • 0 on success β€” slay, it worked, everyone go home πŸŽ‰
  • -EINVAL if 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:

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