drm_hdmi_in...hdr_metadata(9)
π 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 β¨
0on success π (slay)- a negative error code on failure π (not slay, but at least you know)
β¨ SEE ALSO β¨
- Kernel file
./drivers/gpu/drm/display/drm_hdmi_helper.cβ that's where she lives, go say hi π¦ drm_hdmi_avi_infoframe_colorimetry(9)drm_hdmi_avi_infoframe_bars(9)drm_hdmi_avi_infoframe_content_type(9)drm_hdmi_compute_mode_clock(9)drm_hdmi_acr_get_n_cts(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms