drm_bridge_chain_mode_valid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_bridge_chain_mode_valid(9) β€” the kernel API manual, but make it make sense πŸŽ€

okay so bestie, welcome to the drm_bridge_chain_mode_valid(9) page from the Kernel API Manual ✨ this is the one that does the whole "is this display mode actually valid across, like, every bridge" vibe check. stay with me, it's genuinely so good 🫢


✨ NAME ✨

drm_bridge_chain_mode_valid β€” the girl who validates your mode against all the bridges in the encoder chain. all of them. no skipping πŸ’…


🌸 SYNOPSIS 🌸

enum drm_mode_status drm_bridge_chain_mode_valid (struct drm_bridge
*first_bridge , const struct drm_display_info *info , const struct
drm_display_mode *mode );

like, look at her. three args. so clean. πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • first_bridge β€” the bridge control structure. this is your starting point, your main character, the one you pass in πŸ‘‘
  • info β€” the display info that the mode is gonna be validated against. it's the reference sheet, basically πŸ“‹
  • mode β€” the desired mode. the one we're validating. the vibe we're checking ✨

πŸ’– DESCRIPTION πŸ’–

so here's the tea: this function calls drm_bridge_funcs.mode_valid for all the bridges in the encoder chain β€” and it goes in order, starting from first_bridge all the way to the last one. first to last, no cap πŸšΆβ€β™€οΈβž‘οΈπŸšΆβ€β™€οΈ

and if even one bridge is like "nope, not accepting this mode"? the function returns the error code. one hater and the whole thing's cooked 😭 literally that's it.


⚠️ NOTE ⚠️

okay important, don't skip this one bestie πŸ™ˆ β€” the bridge you pass in should be the one closest to the encoder. that's the whole bit. iykyk.

⭐ RETURN ⭐

  • MODE_OK on success πŸ’š slay
  • drm_mode_status Enum error code on failure πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

everything's connected, it's giving ecosystem 🌈 and yes we're listing all of it, i don't do half-measure:


and that's the page!! πŸ’œ this one lives over in ./drivers/gpu/drm, and the version/date on the tin is October 2026 β€” shoutout to drm_bridge_chain_mode_valid(9) for being the moment. periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from