drm_is_accel_client(9)
β¨ 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
- 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