drm_bridge_...first_bridge(9)
π drm_bridge_chain_get_first_bridge β ok bestie, let's talk bridges
So this page lives in the Kernel API Manual (yes, the kernel has a whole manual, she's that girl) and it's literally called drm_bridge_chain_get_first_bridge, which, iykyk, is a whole mouthful but also kind of iconic. Title's truncated up top as drm_bridge_...first_bridge(9) because even manpage headers have to keep it cute and short sometimes β¨
π NAME π
drm_bridge_chain_get_first_bridge β get the first bridge in the chain π«Ά
β¨ SYNOPSIS β¨
struct drm_bridge * drm_bridge_chain_get_first_bridge (struct
drm_encoder *encoder );
Okay so like, one function, one argument, returns a bridge pointer. Slay.
πΈ ARGUMENTS πΈ
encoderβ an encoder object. That's it. That's the whole vibe. π
π₯ DESCRIPTION π₯
So here's the thing you actually need to remember, bestie: the refcount of the returned bridge is incremented. Like, it comes back with a lil extra hold on it, and you are personally responsible for that.
When you're done with it, call drm_bridge_put. Periodt. Don't just ghost it, that's how you leak things and we don't do that here π
β RETURN β
You get the first bridge in the chain π β¦ or NULL if encoder has no bridge attached to it. No bridge, no vibe check, you just get NULL. π
π¦ SEE ALSO π¦
This is the part where the kernel says "now go read these twelve other pages," and honestly? Respect. Main character energy all around:
- Kernel file
./include/drm/drm_bridge.h - 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_current_state(9)drm_bridge_get_next_bridge(9)drm_bridge_get_prev_bridge(9)drm_bridge_chain_get_last_bridge(9)drm_for_each_bridge_in_chain(9)drm_for_each_bridge_in_chain_from(9)
π§ Also hi, friendly reminder from the group chat: that refcount you got handed? That's yours now. drm_bridge_put it when you're done. No cap.
π That's the whole page, bestie β brought to you straight out of ./include/drm, from the Kernel API Manual, dated October 2026. Go get that first bridge. ππ
π¦ 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