drm_bridge_get_next_bridge(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_bridge_get_next_bridge(9) β€” Kernel API Manual, bestie edition ✨

okay so this is <pink>drm_bridge_get_next_bridge</pink> from the Kernel API Manual, and it's literally the glow-up you need when you're stuck in a bridge chain and gotta find out who's next. no cap, it's giving "linked list but make it ✨graphics✨". let's get into it πŸŽ€


🌸 NAME 🌸

drm_bridge_get_next_bridge β€” get the next bridge in the chain πŸ¦‹

like, the next one. the one after this one. you get it. πŸ’œ


✨ SYNOPSIS ✨

struct drm_bridge * drm_bridge_get_next_bridge (struct drm_bridge
*bridge );

yep that's the whole thing, she's compact and iconic πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • bridge β€” bridge object 🫢 (that's your starting point, bestie β€” the bridge whose neighbor you're tryna find)

πŸ’– DESCRIPTION πŸ’–

okay so first things first, and this part is on you, not on the function: the caller is responsible of having a reference to bridge via drm_bridge_get or equivalent. like, you gotta come correct. have your ref, don't be out here raw-dogging pointers 😭

now the cute part: this function leaves the refcount of bridge unmodified. she does not touch it. she does not bump it. she does not drop it. she's a respectful queen πŸ‘‘ and she minds her business.

BUT β€” and this is the plot twist β€” the refcount of the returned bridge is incremented πŸ”₯. so the bridge she hands you back? that one's now your problem. you own a ref. slay, but like, responsibly.

so use drm_bridge_put when you're done with it. periodt. don't leave it hanging, that's a leak and leaks are not the vibe πŸ’€


⭐ RETURN ⭐

the next bridge in the chain after bridge 🌈 β€” or NULL if bridge is the last one. that's it, that's the end of the line, no more bridges, go home 🧚


πŸ¦‹ SEE ALSO πŸ¦‹

bestie you are not gonna believe how much lore there is. the kernel file is ./include/drm/drm_bridge.h and here's the whole friend group πŸ’–

lowkey an entire friend group, iykyk 🌸


ngl there's nothing dangerous here β€” just don't forget the drm_bridge_put or the refcount will haunt you forever 😭

and that's the page, bestie!! 🫢 this one lives under ./include/drm in the Kernel API Manual, dated October 2026, and the header/footer both just say drm_bridge_get_next_bridge(9) again because the kernel likes repeating itself πŸ’€ mwah, go touch some struct drm_bridge πŸ’œβœ¨

πŸ“¦ where this page comes from