drm_bridge_get_prev_bridge(9)
β¨ drm_bridge_get_prev_bridge(9) β¨
okay bestie, so this is a page from the Kernel API Manual β the drm_bridge_get_prev_bridge er, function? yeah. section 9. come sit with me, we're gonna get through this together π
πΈ NAME πΈ
drm_bridge_get_prev_bridge β literally just get the previous bridge in the chain π
π¦ SYNOPSIS π¦
struct drm_bridge * drm_bridge_get_prev_bridge (struct drm_bridge
*bridge );
π ARGUMENTS π
bridgeβ the bridge object, your little guy, your main character π«Ά
β¨ DESCRIPTION β¨
okay so first thing's first, and this is on you, not on the function: the caller is responsible for having a reference to bridge via drm_bridge_get or equivalent. like, get your reference first, bestie, don't come in here empty-handed π
this function leaves the refcount of bridge unmodified. it does not touch it. it is not about that. it is minding its own business β¨
but the refcount of the returned bridge? that one IS incremented, okay. so use drm_bridge_put when you're done with it β and yes, you have to, that's the whole vibe. no cap, don't leak it π
π₯ RETURN π₯
the previous bridge in the chain, or NULL if bridge is the first. like if it's the first, there's nothing before it, sweetie, that's just how it is π
π SEE ALSO π
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_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)
like, go read about the next bridge too, and the first and last in the chain, and the whole for-each situation β she's thorough, she's giving main character energy π
β gentle reminder: reference in, refcount untouched; bridge out, refcount up. put it back. periodt π
mwah π this page lives in ./include/drm, October 2026 era, and it's called drm_bridge_get_prev_bridge(9) β go forth and chain responsibly, bestie π§ββοΈ
π¦ 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