drm_hdmi_in...hdr_metadata(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_hdmi_infoframe_set_hdr_metadata πŸ’–

okay so first things first, bestie: this is a page from the Kernel API Manual (section 9, the kernel API zone), and the function we're obsessing over today is drm_hdmi_infoframe_set_hdr_metadata β€” yeah, it's a mouthful, we love her anyway 🫢


✨ NAME ✨

drm_hdmi_infoframe_set_hdr_metadata β€” literally fills an HDMI DRM infoframe with HDR metadata that came from userspace. that's the whole vibe. no cap πŸ’…


✨ SYNOPSIS ✨

int drm_hdmi_infoframe_set_hdr_metadata (struct hdmi_drm_infoframe
*frame , const struct drm_connector_state *conn_state );

like, she takes two things and gives you back an int. simple. iconic. πŸŽ€


✨ ARGUMENTS ✨

  • frame β€” the HDMI DRM infoframe 🌸 this is the thing getting filled up, bestie. she's the canvas.
  • conn_state β€” the connector state, and it's the one containing the HDR metadata πŸ”₯ so this is where the good stuff lives.

✨ RETURN ✨

  • 0 on success πŸŽ‰ (slay)
  • a negative error code on failure 😭 (not slay, but at least you know)

✨ SEE ALSO ✨

like, the whole friend group fr fr πŸ‘‘


lowkey a reminder that if it fails you get a negative error code, not some cute little boolean β€” so check it properly, bestie, don't just assume it worked πŸ™ˆ

and that's the page!! mwah πŸ’œ this gem comes to you from ./drivers/gpu/drm/display, dated October 2026 β€” see you in the next one, bye bestie πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from