drm_for_eac...n_chain_from(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_for_each_bridge_in_chain_from(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” this page is literally all about drm_for_each_bridge_in_chain_from, and it’s giving β€œwalk the bridge chain starting from one specific bridge” energy. The vibe check: start at first_bridge, iterate through the encoder chain, and let this iterator handle the bridge-reference gets/puts plus the encoder chain mutex lock so nobody edits the chain mid-loop. Iconic behavior, no cap. πŸ’…


🌸 NAME 🌸

drm_for_each_bridge_in_chain_from β€” iterate over all bridges starting from the given bridge. Periodt. πŸ’–

✨ SYNOPSIS ✨

drm_for_each_bridge_in_chain_from (first_bridge , bridge );

πŸŽ€ ARGUMENTS πŸŽ€

  • first_bridge β€” the bridge to start from. This is your main character starting point, bestie. ✨
  • bridge β€” a bridge pointer updated to point to the current bridge at each iteration. That’s the one that changes as you loop, lowkey the moving part of the whole situation. πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here’s the tea: iterate over all bridges in the encoder chain starting from first_bridge, included. No cap, first_bridge is part of the iteration too. πŸ’…

While it’s iterating, it automatically gets/puts the bridge reference, and it locks the encoder chain mutex to prevent chain modifications while iterating. So yes, it’s handling the bridge-reference gets/puts choreography and the chain-lock situation for you. Obsessed. 😭

πŸ’œ SEE ALSO πŸ’œ

Kernel file: ./include/drm/drm_bridge.h β€” the source-file link-up. 🌈


xoxo, from the ./include/drm source corner of the Kernel API Manual, dated October 2026, section (9) β€” slay and happy iterating, bestie πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from