drm_atomic_...put_bus_fmts(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_atomic_...put_bus_fmts(9) β€” Kernel API Manual ✨

okay so bestie, buckle up, because this one lives in the kernel's DRM corner and it's giving "quiet helper function that the whole HDMI pipeline depends on" energy. The full name is a whole mouthful:

drm_atomic_helper_bridge_get_hdmi_output_bus_fmts

and yeah, that's the NAME: it's the helper that implements atomic_get_output_bus_fmts for HDMI. πŸŽ€


🌈 SYNOPSIS

u32 * drm_atomic_helper_bridge_get_hdmi_output_bus_fmts (struct
       drm_bridge *bridge , struct drm_bridge_state *bridge_state , struct
       drm_crtc_state *crtc_state , struct drm_connector_state *conn_state ,
       unsigned int *num_output_fmts );

five args, one return, zero chill. πŸ’…


πŸ¦‹ ARGUMENTS

  • bridge β€” pointer to struct drm_bridge. the bridge we're doing all this for, main character energy fr.
  • bridge_state β€” pointer to the current bridge state. the vibes of the bridge rn.
  • crtc_state β€” pointer to the current CRTC state. that's the display controller side of things.
  • conn_state β€” pointer to the current connector state. the "what's actually plugged in" side.
  • num_output_fmts β€” pointer to where the number of entries in the returned array will be stored. Set to 0 if unsuccessful. so if it's 0, bestie, it didn't work 😭

✨ DESCRIPTION

so this is the common implementation for the drm_bridge_funcs.atomic_get_output_bus_fmts operation, and it's the one that's applicable to HDMI connectors. lowkey the whole point. no cap. 🫢


πŸ’– RETURN

a newly allocated array of u32 values, of length fInum_output_fmts, representing all the MEDIA_BUS_FMTS_ for the current connector state's chosen HDMI output bits per compoennt. or NULL if it fails to allocate one β€” in which case, not slay, the allocation flopped πŸ’€

heads up: yes, the original really does spell it fInum_output_fmts and compoennt up there β€” we're keeping the lore intact, don't come for me πŸ™ˆ

πŸ‘‘ SEE ALSO

okay this list is LONG and honestly iconic, so let's go, no skipping, periodt:

like, that's the whole friend group right there 🌸


and that's the page!! this lil beauty lives in ./drivers/gpu/drm, dated October 2026 β€” go read the source, it's literally right there. iykyk πŸ’œπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from