hdmi_infoframe_pack(9)
π hdmi_infoframe_pack(9) β the Kernel API Manual glow-up β¨
okay so bestie, welcome to the Kernel API Manual entry for hdmi_infoframe_pack(9) β this is the little function that takes your HDMI infoframe from "struct vibes" to "actual bytes a controller can read" π
πΈ NAME πΈ
hdmi_infoframe_pack β check a HDMI infoframe, and write it to binary buffer. that's the whole job, and she does it flawlessly π«Ά
β¨ SYNOPSIS β¨
ssize_t hdmi_infoframe_pack (union hdmi_infoframe *frame , void *buffer
, size_t size );
π¦ ARGUMENTS π¦
frameβ the HDMI infoframe in question. yes, that one πbufferβ the destination buffer, aka where the packed-up bytes are gonna live πsizeβ size of buffer. literally just how much room you're giving her πΈ
π₯ DESCRIPTION π₯
so what she does first is validate that the infoframe is consistent β vibe check passed, bestie β and then she updates the derived fields (like length) based on the other fields, because some things are just consequences of other things, iykyk π
after that, she packs all the information chillin' in the frame structure into a binary representation that can be written straight into the corresponding controller registers. no cap, that's the whole flex π β¨
she also computes the checksum as required by section 5.3.5 of the HDMI 1.4 specification β because the spec said so and we do not argue with the spec π
and what does she return? the number of bytes packed into the binary buffer π ... or a negative error code on failure π (sad girl hours, but at least you know)
π SEE ALSO π
kernel file ./drivers/video/hdmi.c, plus the whole friend group π«Ά:
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_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_drm_infoframe_unpack(9)hdmi_infoframe_unpack(9)
and that's the page, bestie π this one lives over in ./drivers/video and it's dated October 2026 β go forth and pack those frames, ily, 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