STRUCT DRM_PRIVATE_STATE(9)
π 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 globaldrm_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 π
struct drm_crtc_commit(9)struct drm_private_state_funcs(9)struct drm_private_obj(9)drm_for_each_privobj(9)struct drm_atomic_commit(9)drm_crtc_commit_get(9)drm_crtc_commit_put(9)drm_atomic_commit_get(9)drm_atomic_commit_put(9)drm_atomic_get_old_crtc_state(9)drm_atomic_get_new_crtc_state(9)drm_atomic_get_old_plane_state(9)drm_atomic_get_new_plane_state(9)drm_atomic_get_old_connector_state(9)drm_atomic_get_new_connector_state(9)__drm_atomic_get_current_plane_state(9)for_each_oldnew_connector_in_state(9)for_each_old_connector_in_state(9)for_each_new_connector_in_state(9)for_each_oldnew_crtc_in_state(9)for_each_old_crtc_in_state(9)for_each_new_crtc_in_state(9)for_each_oldnew_colorop_in_state(9)for_each_new_colorop_in_state(9)for_each_oldnew_plane_in_state(9)for_each_oldnew_plane_in_state_reverse(9)for_each_new_plane_in_state_reverse(9)for_each_old_plane_in_state(9)for_each_new_plane_in_state(9)for_each_oldnew_private_obj_in_state(9)for_each_old_private_obj_in_state(9)for_each_new_private_obj_in_state(9)drm_atomic_crtc_needs_modeset(9)drm_atomic_crtc_effectively_active(9)struct drm_bus_cfg(9)struct drm_bridge_state(9)
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
- 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