drm_atomic_g..._for_encoder(9)
π drm_atomic_get_new_connector_for_encoder(9) π
okay so this is straight out of the Kernel API Manual, bestie β buckle up π
β¨ NAME β¨
drm_atomic_get_new_connector_for_encoder β literally gets you the new connector for an encoder. that's the whole vibe π¦
πΈ SYNOPSIS πΈ
struct drm_connector * drm_atomic_get_new_connector_for_encoder (const
struct drm_atomic_commit *state , struct drm_encoder *encoder );
like yes she's a long one but she's iconic, we don't gatekeep π
π ARGUMENTS π
stateβ the atomic state, mmkay? that's the context we're snooping around in β¨encoderβ the encoder you want the connector state for. the main character of this function tbh π
π DESCRIPTION π
so what she does is: she finds and returns the connector that's gonna be connected to encoder, exactly as the state says it will be. no cap, that's the whole job π«Ά
and like β if there's literally no connector in state that'll have encoder connected to it, she just returns NULL. and before you come for her, bestie, that's not a weird invalid use case!! it's actually lowkey useful sometimes, because it lets you tell apart commits that have no connectors attached to encoder from the ones that do β and then you can go inspect their state π this is especially true in disable hooks, because the pipeline is gonna change. it's giving shifting sands fr fr π
and if you don't have access to the atomic state at all? no stress, just go see drm_atomic_get_connector_for_encoder instead. she's got you π
β RETURN β
the new connector that's connected to encoder β or NULL if the encoder isn't connected. simple as that, periodt πβ¨
π¦ SEE ALSO π¦
kernel file: ./drivers/gpu/drm/drm_atomic.c
and the whole extended fam, in the order the manpage gave them (we do not skip anyone at this sleepover) π§:
state lifetime(9)drm_crtc_commit_wait(9)drm_atomic_commit_default_release(9)drm_atomic_commit_init(9)drm_atomic_commit_alloc(9)drm_atomic_commit_default_clear(9)drm_atomic_commit_clear(9)__drm_atomic_commit_free(9)drm_atomic_get_crtc_state(9)drm_atomic_get_plane_state(9)drm_atomic_get_colorop_state(9)drm_atomic_get_old_colorop_state(9)drm_atomic_get_new_colorop_state(9)drm_atomic_plane_check(9)handling driver private state(9)drm_atomic_private_obj_init(9)drm_atomic_private_obj_fini(9)drm_atomic_get_private_obj_state(9)drm_atomic_get_old_private_obj_state(9)drm_atomic_get_new_private_obj_state(9)drm_atomic_get_old_connector_for_encoder(9)drm_atomic_get_connector_for_encoder(9)drm_atomic_get_old_crtc_for_encoder(9)drm_atomic_get_new_crtc_for_encoder(9)drm_atomic_get_connector_state(9)drm_atomic_get_bridge_state(9)drm_atomic_get_old_bridge_state(9)drm_atomic_get_new_bridge_state(9)drm_atomic_add_encoder_bridges(9)drm_atomic_add_affected_connectors(9)drm_atomic_add_affected_planes(9)drm_atomic_add_affected_colorops(9)drm_atomic_check_only(9)drm_atomic_commit(9)drm_atomic_nonblocking_commit(9)drm_atomic_print_new_state(9)drm_state_dump(9)
ok that's the whole page, go forth and slay your atomic state checks π π₯
and finally, the cute lil sign-off: this one lives under ./drivers/gpu/drm, dated October 2026, and she answers to the name drm_atomic_g..._for_encoder(9) β yes the truncated name is her government name, we don't question it ππ«Ά
π¦ 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