__drm_atomic...licate_state(9)
π
__drm_atomic_helper_crtc_duplicate_state β NAME πΈ
okay bestie, so this is __drm_atomic_helper_crtc_duplicate_state, straight out of the Kernel API Manual, and it does exactly one iconic thing: it copies atomic CRTC state. that's the whole vibe. π
β¨ SYNOPSIS β¨
void __drm_atomic_helper_crtc_duplicate_state (struct drm_crtc *crtc ,
struct drm_crtc_state *state );
like, two args, void return, no drama. π
π«Ά ARGUMENTS π«Ά
crtcβ the CRTC object in question. your main character. πstateβ the atomic CRTC state. the one getting the copy-paste treatment. β¨
π DESCRIPTION π
so here's the tea: this function copies atomic state from a CRTC's current state and resets the inferred values. that's it, that's the whole job. π
and why do we care? because it's useful for drivers that subclass the CRTC state β iykyk. if you're subclassing, this helper is literally your bestie. fr fr. π¦
ngl, "resets inferred values" is doing a lot of heavy lifting in that sentence β just know it's part of the copy, bestie. don't skip it. π
π SEE ALSO π
okay this list is long but we do not gatekeep here, so here's every single one of them, in order. no cap. πΈ
- 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_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_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)
and that's the whole page, bestie β no crumbs left behind. π§
sign-off time: this one lives in ./drivers/gpu/drm, dated October 2026, and it's all about __drm_atomic...licate_state(9). slay, go duplicate some state. π₯π
π¦ 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