drm_file_get_master(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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