drm_bridge_c..._last_bridge(9)
π drm_bridge_c..._last_bridge(9) β the Kernel API Manual moment
okay so bestie, welcome to drm_bridge_c..._last_bridge(9), straight out of the Kernel API Manual. this one's a little one-shot helper and it's honestly so useful β it's giving "grab the end of the line" energy π
β¨ NAME β¨
drm_bridge_chain_get_last_bridge β Get the last bridge in the chain π
π¦ SYNOPSIS π¦
struct drm_bridge * drm_bridge_chain_get_last_bridge (struct drm_encoder
*encoder );
π ARGUMENTS π
encoderβ the encoder object. that's the one you're handing in, no cap π
πΈ DESCRIPTION πΈ
heads up, this is the important bit: the refcount of the returned bridge is incremented β¨. so like, it's yours now, you're responsible for it. when you're done with it, call drm_bridge_put β do not just wander off and leave it hanging, that's so not slay of you π«Ά
β RETURN β
- it gives you the last bridge in the chain π₯
- or
NULLif the encoder has no bridge attached to it. literally nothing there, empty, a void, iykyk π
π SEE ALSO π
Kernel file ./include/drm/drm_bridge.h β and bestie, the whole friend group:
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_first_bridge(9)drm_for_each_bridge_in_chain(9)drm_for_each_bridge_in_chain_from(9)
fr fr, don't forget the drm_bridge_put. main character energy includes cleaning up after yourself π
okay that's the page!! this cutie lives in ./include/drm, dated October 2026, and it's filed under the name drm_bridge_c..._last_bridge(9) in the Kernel API Manual β mwah, stan, bye π§π
π¦ 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