drm_is_accel_client(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_is_accel_client ✨

okay so bestie, welcome to the Kernel API Manual β€” this one's a tiny little function page but it's gonna eat, i promise πŸ’…

🌸 NAME 🌸

drm_is_accel_client β€” is this an open file of the compute acceleration node, or is it not? that's the whole question πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

bool drm_is_accel_client (const struct drm_file *file_priv );

literally one function, one argument, returns a bool. clean. minimal. iconic ✨


🌈 ARGUMENTS 🌈

  • file_priv β€” a DRM file, bestie. that's it, that's the arg πŸ’–

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the vibe: this function returns true if this is an open file of the compute acceleration node β€” like, the accel node specifically, not the other ones. and how does it know? literally it just checks if drm_file.minor of file_priv is an accel minor. that's the whole test. no cap 🫢

also see: :doc:Introduction to compute accelerators subsystem </accel/introduction>`` β€” yes the docs are linking you to the intro, go read it, it's giving "required reading before the group chat" energy 😭

ngl, if you're here trying to figure out whether some random fd is a compute accel client, this is the one you want. she's a one-job function and she does her job πŸ’€βœ¨

🧚 SEE ALSO 🧚

  • Kernel file ./include/drm/drm_file.h β€” the whole file, not just a section, bestie πŸ“
  • struct drm_minor(9)
  • struct drm_pending_event(9)
  • struct drm_file(9)
  • drm_is_primary_client(9)
  • drm_is_render_client(9)
  • struct drm_memory_stats(9)

like a little friend group of related structs and helpers β€” the primary client, the render client, and the accel client all vibing together πŸŒΈπŸ’œ


quick vibe check: this page lives in ./include/drm, dated October 2026, and it's from the Kernel API Manual β€” so if you're reading this in the future, hi, hope the kernel's slaying πŸ”₯πŸ‘‘

okay bye bestie, go check your minors πŸ’…πŸŽ€

πŸ“¦ where this page comes from