drm_atomic_...bridge_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_atomic_get_new_bridge_state(9) ✨

Okay bestie, welcome to the Kernel API Manual page for drm_atomic_get_new_bridge_state β€” honestly? kind of a niche little icon but we stan a focused queen πŸ’…


🌸 NAME 🌸

drm_atomic_get_new_bridge_state β€” get the new bridge state, if it exists πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

struct drm_bridge_state * drm_atomic_get_new_bridge_state (const struct
       drm_atomic_commit *state , struct drm_bridge *bridge );

πŸŽ€ ARGUMENTS πŸŽ€

  • state β€” the global atomic state object, i.e. the big main-character state that's holding everything together ✨
  • bridge β€” the bridge you wanna grab, like reaching into the group chat for that one specific friend 🫢

πŸ’– DESCRIPTION πŸ’–

So here's the vibe: this function hands you the new bridge state for the bridge you passed in. That's it, that's the whole flex 😭

But β€” and this is the important part, no cap β€” if that bridge isn't part of the global atomic state, you get NULL back. Not an error, not a crash, just NULL. So like, check for it, bestie. Fr fr. πŸ™ˆ


🌈 SEE ALSO 🌈

Omg okay, the friend group is large, buckle up πŸŽ€

Kernel file ./drivers/gpu/drm/drm_atomic.c β€” plus 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_new_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_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)

Like I said. Huge friend group. All iconic, all linked above πŸ’œ


πŸ’€ lowkey reminder: NULL is a totally valid answer here, not a bug β€” so don't come for the function when it returns nothing, okay? 🫢

That's the whole page, bestie β€” mwah πŸ’‹ This lil number lives in ./drivers/gpu/drm (the Kernel API Manual's home turf), dated October 2026, and it's filed under drm_atomic_...bridge_state(9) in case you ever need to find it again πŸ¦‹βœ¨πŸŒΈ

πŸ“¦ where this page comes from