drm_is_primary_client(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:

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