__drm_atomi...licate_state(9)
π
__drm_atomic_helper_private_obj_duplicate_state β from the Kernel API Manual, bestie
okay so picture this: it's a kernel API manual page, the vibe is immaculate, and the function name is so long it literally got truncated in the header. we love that for us. anyway. sit down, grab a strawberry π, and let's talk about copying atomic private state.
β¨ NAME β¨
__drm_atomic_helper_private_obj_duplicate_state β bestie, it copies atomic private state. that's the whole thing. that's the job. π
π¦ SYNOPSIS π¦
void __drm_atomic_helper_private_obj_duplicate_state (struct
drm_private_obj *obj , struct drm_private_state *state );
it returns void, meaning it gives you nothing back, and honestly? iconic. it just does the thing and leaves. no notes. π
πΈ ARGUMENTS πΈ
objβ a CRTC object. that's your source material, the one holding the state we're about to steal from (lovingly). πstateβ the new private object state. this is the fresh little container the copied stuff lands in. π«Ά
π DESCRIPTION π
so what it actually does: it copies atomic state from a private object's current state and then resets the inferred values. like, you take the whole vibe, but you wipe the stuff that was only ever guessed at. π§
and why do we care? because this is useful for drivers that subclass the private state. so if your driver is out here doing inheritance cosplay with private state, this helper has your back. periodt. π₯
π SEE ALSO π
the extended universe, fr fr β everything below is 9-section kernel API realness, and yes i'm listing all of them because we don't do "etc." in this house:
- the kernel file
./drivers/gpu/drm/drm_atomic_state_helper.c atomic 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_create_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)
ok real talk: none of this page tells you what happens if you pass something cursed. no warnings, no error codes, no exit statuses β it's void, it's chill, it just copies. don't be weird about it. π
that's the whole page, bestie. sourced from ./drivers/gpu/drm and dated October 2026 β so like, future girl summer. mwah πβ¨
π¦ 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