drm_bridge_get_modes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_bridge_get_modes(9) πŸ’…

okay so this is a page from the Kernel API Manual β€” yes, the actual one, we're in the kernel docs bestie, put your hair up πŸŽ€


✨ NAME ✨

drm_bridge_get_modes β€” the glow-up function that fills all the modes currently valid for the sink into the @connector. slay πŸ’…


🌸 SYNOPSIS 🌸

int drm_bridge_get_modes (struct drm_bridge *bridge , struct drm_connector *connector );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • bridge β€” the bridge control structure. this is the main character of the operation, honestly πŸ‘‘
  • connector β€” the connector you're filling with modes. she's the canvas, the receptacle, the vessel 🎨

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea β˜• β€” if the bridge supports output modes retrieval (and you can tell because it's reported by the DRM_BRIDGE_OP_MODES bridge ops flag, iykyk), then this function calls drm_bridge_funcs.get_modes to fill the connector with all the valid modes and returns the number of modes added. periodt πŸ’…

otherwise? it just returns 0. no drama, no modes, no nothing. πŸ€·β€β™€οΈ


⭐ RETURN ⭐

the number of modes added to the connector. that's it, that's the number, that's the whole vibe πŸ”₯


🌈 SEE ALSO 🌈

so many friends, so many links, we love a well-connected girlie 🫢

first up, the kernel file itself:

  • ./drivers/gpu/drm/drm_bridge.c

and then the whole extended friend group:


and that's the whole page babes πŸ’œ it lives in ./drivers/gpu/drm and the date on it is October 2026 β€” future-coded of it, honestly. mwah, go fill some connectors πŸ“βœ¨

πŸ“¦ where this page comes from