hdmi_drm_infoframe_unpack(9)
π hdmi_drm_infoframe_unpack β like, the Kernel API Manual page, bestie β¨
okay so welcome to the hdmi_drm_infoframe_unpack(9) glow-up, straight out of the Kernel API Manual π no cap, this is the page you want when you're out here unpacking binary buffers into HDMI DRM infoframes. iykyk π
β¨ NAME β¨
hdmi_drm_infoframe_unpack β unpack binary buffer to a HDMI DRM infoframe π¦
literally that. the whole personality. unpacking. into a DRM infoframe. slay.
πΈ SYNOPSIS πΈ
int hdmi_drm_infoframe_unpack (struct hdmi_drm_infoframe *frame , const
void *buffer , size_t size );
π«Ά ARGUMENTS π«Ά
frameβ the HDMI DRM infoframe π this is the structured baddie the whole thing is gonna fill up.bufferβ the source buffer π it's where the raw bytes live.sizeβ size of buffer β yes bestie, it needs to know how big it is, don't leave it guessing.
π DESCRIPTION π
okay so here's the tea π: this function unpacks the CTA-861-G DRM infoframe that's contained in the binary buffer, and it drops it into a structured frame of the HDMI Dynamic Range and Mastering (DRM) infoframe. main character energy fr fr π
and that's not all β it also verifies the checksum as required by section 5.3.5 of the HDMI 1.4 specification β¨ like it's thorough, it's responsible, it's giving valedictorian π
Returns 0 on success or a negative error code on failure π so like, check the return value, bestie, don't just vibe past it.
π₯ SEE ALSO π₯
the whole friend group π«Ά β Kernel file ./drivers/video/hdmi.c and everyone it runs with:
hdmi_avi_infoframe_init(9)hdmi_avi_infoframe_check(9)hdmi_avi_infoframe_pack_only(9)hdmi_avi_infoframe_pack(9)hdmi_spd_infoframe_init(9)hdmi_spd_infoframe_check(9)hdmi_spd_infoframe_pack_only(9)hdmi_spd_infoframe_pack(9)hdmi_audio_infoframe_init(9)hdmi_audio_infoframe_check(9)hdmi_audio_infoframe_pack_only(9)hdmi_audio_infoframe_pack(9)hdmi_audio_infoframe_pack_for_dp(9)hdmi_vendor_infoframe_init(9)hdmi_vendor_infoframe_check(9)hdmi_vendor_infoframe_pack_only(9)hdmi_vendor_infoframe_pack(9)hdmi_drm_infoframe_init(9)hdmi_drm_infoframe_check(9)hdmi_drm_infoframe_pack_only(9)hdmi_drm_infoframe_pack(9)hdmi_infoframe_pack_only(9)hdmi_infoframe_pack(9)hdmi_infoframe_log(9)hdmi_avi_infoframe_unpack(9)hdmi_spd_infoframe_unpack(9)hdmi_audio_infoframe_unpack(9)hdmi_vendor_any_infoframe_unpack(9)hdmi_drm_infoframe_unpack_only(9)hdmi_infoframe_unpack(9)
and that's the whole page, periodt π
this lil number lives over in ./drivers/video and it's dated October 2026 β so yeah, fresh off the press, timestamped and everything β mwah π π
π¦ 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