STRUCT DRM_PRIVATE_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct drm_private_state(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ β€” yes we're doing kernel docs today, and honestly? iconic of you. this page is about struct drm_private_state, and no cap, it's a short one, so grab your lil strawberry drink πŸ“ and let's go.


🌸 NAME 🌸

struct drm_private_state β€” the base struct for driver private object state πŸŽ€

the way this thing is literally just the foundation that driver private object state builds on. main character energy fr.


✨ SYNOPSIS ✨

struct drm_private_state {
    struct drm_atomic_commit *state;
    struct drm_private_obj *obj;
};

look at her. two members. clean. minimal. she ate πŸ’…


πŸ¦‹ Members πŸ¦‹

  • state β€” a backpointer to the global drm_atomic_commit. so like, she knows exactly which atomic update she belongs to 🫢
  • obj β€” a backpointer to the private object. yep, she remembers her object too. lowkey obsessed with backpointers ngl πŸ’–

🌈 Description 🌈

so here's the vibe: currently this struct only contains a backpointer to the overall atomic update, plus the relevant private object. that's it. that's the whole thing. simple queen πŸ‘‘

but the docs are like "in the future" it also might hold synchronization information similar to, for example, drm_crtc.commit. so like… watch this space πŸ‘€ β€” that's a maybe, not a promise, don't come for me.


🧚 SEE ALSO 🧚

the Kernel file ./include/drm/drm_atomic.h and honestly a whole friend group of structs and functions β€” here's the full squad, go say hi πŸ’œ


and that's the whole page, bestie! go forth and backpoint responsibly 🫑

sign-off time πŸŽ€ this one lives in ./include/drm, dated October 2026, and it's filed under struct drm_private_state(9) β€” mwah, slay, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from