drm_file_get_master(9)
π drm_file_get_master(9) π
okay bestie, this page is straight from the Kernel API Manual and it's giving βtiny refcount helper with main character energy.β Letβs go. β¨
π NAME π
drm_file_get_master β reference &drm_file.master of @file_priv
πΈ SYNOPSIS πΈ
struct drm_master * drm_file_get_master (struct drm_file *file_priv );
π¦ ARGUMENTS π¦
file_privβ the DRM file private π«Ά
β¨ DESCRIPTION β¨
okay so here's the tea: drm_file_get_master increments the reference count of file_priv's drm_file.master and returns the drm_file.master. Slay. If file_priv has no drm_file.master, it returns NULL. No cap.
π
important bestie: master pointers returned from this function should be unreferenced using drm_master_put. Don't ghost the cleanup, fr fr.
π SEE ALSO π
Kernel file ./drivers/gpu/drm/drm_auth.c master and authentication(9), drm_is_current_master(9), drm_master_get(9), drm_master_put(9) β go read these too, iykyk. π
thatβs the whole vibe! π source/version: ./drivers/gpu/drm Β· date: October 2026 Β· drm_file_get_master(9) and outttt πβ¨
π¦ 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