__drm_atomic...create_state(9)
πΈ __drm_atomic...create_state(9) πΈ
okay so bestie, welcome to the Kernel API Manual π this one's short and sweet, like a little snack between the big scary DRM pages. let's get into it π
β¨ NAME β¨
__drm_atomic_helper_private_obj_create_state β literally just initializes private object state. that's the whole vibe. π¦
β¨ SYNOPSIS β¨
void __drm_atomic_helper_private_obj_create_state (struct drm_private_obj *obj , struct drm_private_state *state );
like yes, it returns void, it's not giving "i have a return value" energy, it's giving "i did the thing, move on" π
β¨ ARGUMENTS β¨
objβ the private object π«Ά this is the one you're supposed to have zeroed already (see below, i'm watching you π)stateβ the brand new state you want initialized β¨ freshly allocated, ready to be given a lil glow-up
β¨ DESCRIPTION β¨
so what it does is initialize the newly allocated state π that's it, that's the job. usually you need this when you're initializing the drivers, like it's part of the getting-ready routine, not a whole main character moment on its own.
β οΈ ngl this is important: obj is assumed to be zeroed. that's an assumption, not a suggestion. if you hand it unzeroed memory, that's on you bestie π the manpage says it, i'm just the messenger π«‘
this one is useful for drivers that use private states β like if your driver is the private-state type, this is your little helper. iykyk π
β¨ SEE ALSO β¨
okay this list is LONG and honestly iconic, so buckle up π here's the whole friend group:
- Kernel file
./drivers/gpu/drm/drm_atomic_state_helper.catomic state reset and initialization(9) __drm_atomic_helper_crtc_state_init(9)__drm_atomic_helper_crtc_reset(9)drm_atomic_helper_crtc_reset(9)drm_atomic_helper_crtc_create_state(9)__drm_atomic_helper_crtc_duplicate_state(9)drm_atomic_helper_crtc_duplicate_state(9)__drm_atomic_helper_crtc_destroy_state(9)drm_atomic_helper_crtc_destroy_state(9)__drm_atomic_helper_plane_state_init(9)__drm_atomic_helper_plane_reset(9)drm_atomic_helper_plane_reset(9)drm_atomic_helper_plane_create_state(9)__drm_atomic_helper_plane_duplicate_state(9)drm_atomic_helper_plane_duplicate_state(9)__drm_atomic_helper_plane_destroy_state(9)drm_atomic_helper_plane_destroy_state(9)__drm_atomic_helper_connector_state_init(9)__drm_atomic_helper_connector_reset(9)drm_atomic_helper_connector_reset(9)drm_atomic_helper_connector_create_state(9)drm_atomic_helper_connector_tv_margins_reset(9)drm_atomic_helper_connector_tv_reset(9)drm_atomic_helper_connector_tv_check(9)__drm_atomic_helper_connector_duplicate_state(9)drm_atomic_helper_connector_duplicate_state(9)__drm_atomic_helper_connector_destroy_state(9)drm_atomic_helper_connector_destroy_state(9)__drm_atomic_helper_private_obj_duplicate_state(9)__drm_atomic_helper_bridge_duplicate_state(9)drm_atomic_helper_bridge_duplicate_state(9)drm_atomic_helper_bridge_destroy_state(9)__drm_atomic_helper_bridge_state_init(9)drm_atomic_helper_bridge_create_state(9)
like, crtcs, planes, connectors, bridges, private objectsβ¦ the whole squad showed up ππ
and that's the page!! short king energy, but every word of it mattered π«Ά this one lives in ./drivers/gpu/drm, dated October 2026, and it's filed under the Kernel API Manual β go read the rest of the family, they're all in SEE ALSO β¨ bye bestie, go zero your obj π
π¦ 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