drm_atomic_g..._for_encoder(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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) 🧚:


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