drm_bridge_g...urrent_state(9)
π drm_bridge_g...urrent_state(9) β Kernel API Manual, bestie
okay so welcome to the group chat, this is the page for drm_bridge_get_current_state β it lives in the Kernel API Manual and honestly? it's a short one. a little snack. a lil bite-sized baddie. let's get into it π
β¨ NAME β¨
drm_bridge_get_current_state β get the current bridge state, that's it, that's the whole vibe π¦
πΈ SYNOPSIS πΈ
struct drm_bridge_state * drm_bridge_get_current_state (struct
drm_bridge *bridge );
like, you hand it a bridge, it hands you back a struct drm_bridge_state *. iconic behavior fr fr π
π ARGUMENTS π
bridgeβ the bridge object. that's the one. the main character of this function call π«Ά
β DESCRIPTION β
okay so listen close because this is the important part, no cap:
This function must be called with the modeset lock held. π
like literally must. not "should", not "probably fine", must. hold the modeset lock, bestie. do not come in here unlocked, that's not the vibe.
and then what do you get? The current bridge state β or NULL if there is none. that's it. sometimes there's a state, sometimes there's not, and the function is very chill about both πβ¨
π₯ SEE ALSO π₯
Kernel file ./include/drm/drm_bridge.h β plus the whole friend group, go say hi to all of them:
enum drm_bridge_attach_flags(9)struct drm_bridge_funcs(9)struct drm_bridge_timings(9)enum drm_bridge_ops(9)struct drm_bridge(9)devm_drm_bridge_alloc(9)drm_bridge_get_next_bridge(9)drm_bridge_get_prev_bridge(9)drm_bridge_chain_get_first_bridge(9)drm_bridge_chain_get_last_bridge(9)drm_for_each_bridge_in_chain(9)drm_for_each_bridge_in_chain_from(9)
π§ sign-off π§
this absolute little gem comes from ./include/drm, dated October 2026, and it's filed under drm_bridge_g...urrent_state(9) π
that's the whole page bestie, go hold that modeset lock and slay ππ β¨
π¦ 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