drm_is_primary_client(9)
β¨ drm_is_primary_client β bestie, is this file of the primary node?? π
okay so real quick before we go anywhere: this page lives in the Kernel API Manual, and the star of the show is drm_is_primary_client. yes she's a kernel function, yes she's important, and yes I'm gonna walk you through her π
πΈ NAME πΈ
drm_is_primary_client β is this an open file of the primary node
like, literally, that's the whole gig. she checks a file and tells you if it's giving primary node energy or not π«Ά
π¦ SYNOPSIS π¦
bool drm_is_primary_client (const struct drm_file *file_priv );
she takes one thing, she gives you back a bool. that's it. simple queen behavior π
π ARGUMENTS π
file_privβ the DRM file. that's it, that's the whole argument list. pls hand her a DRM file and she'll do her little vibe check β¨
π DESCRIPTION π
okay so here's the tea π β she returns true if this is an open file of the primary node, i.e. drm_file.minor of file_priv is a primary minor.
that's the whole check. no cap. if the minor is a primary minor, you get true; otherwise you don't. iconic, lowkey.
also!! there's a whole section about primary nodes and authentication β go read :ref:section on primary nodes and authentication <drm_primary_node>`` if you wanna go deeper. iykyk π
π SEE ALSO π
your girl doesn't exist in a vacuum, bestie β go check out:
- Kernel file
./include/drm/drm_file.h struct drm_minor(9)struct drm_pending_event(9)struct drm_file(9)drm_is_render_client(9)drm_is_accel_client(9)struct drm_memory_stats(9)
the whole friend group fr fr π«Άπ
π reminder: this is a kernel API page, so like, don't go inventing behaviors that aren't listed above. she tells you exactly what she tells you. periodt.
and that's the page!! this one comes from ./include/drm, dated October 2026, and it's filed under drm_is_primary_client(9). mwah, go slay your DRM checks π
πβ¨
π¦ 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