drm_atomic_h...licate_state(9)
β¨ drm_atomic_helper_bridge_duplicate_state(9) β¨
okay bestie, so this is a page from the Kernel API Manual and it's literally all about one lil helper: drm_atomic_helper_bridge_duplicate_state. it's giving "small function, big responsibilities" and honestly? iconic. π
π NAME π
drm_atomic_helper_bridge_duplicate_state β Duplicate a bridge state object π¦
πΈ SYNOPSIS πΈ
struct drm_bridge_state * drm_atomic_helper_bridge_duplicate_state
(struct drm_bridge *bridge );
like, that's the whole vibe. one function, one pointer in, one shiny state pointer out. slay. β¨
π ARGUMENTS π
bridgeβ the bridge object. that's it. that's the whole argument. she's low maintenance, we love her π
π₯ DESCRIPTION π₯
so what does she actually do? bestie, she allocates a brand new bridge state and initializes it with the current bridge state values. no cap β fresh object, copied values, done. π«Ά
this helper is meant to be used as a bridge drm_bridge_funcs.atomic_duplicate_state hook, specifically for bridges that don't subclass the bridge state. so if your bridge is out here living a simple un-subclassed life, this is the hook for you. periodt. π
β SEE ALSO β
okay this list is LONG, grab a snack π. everything below is your reading list, fr fr:
- Kernel file
./drivers/gpu/drm/drm_atomic_state_helper.cβ that's where she lives π - 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_private_obj_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 π β brought to you from ./drivers/gpu/drm, dated October 2026, filed under drm_atomic_h...licate_state(9). go forth and duplicate those states responsibly πππ
π¦ 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