hdmi_vendor...me_pack_only(9)
π NAME π
hdmi_vendor_infoframe_pack_only β bestie, this is the one that writes a HDMI vendor infoframe straight into a binary buffer β¨
Oh also, hi, this page lives in the Kernel API Manual, section 9, and the whole thing is about that function up there in the title π iykyk.
π SYNOPSIS π
ssize_t hdmi_vendor_infoframe_pack_only (const struct
hdmi_vendor_infoframe *frame , void *buffer , size_t size );
That's the whole function signature, copy-pasted with love, not one character touched π«Ά
π¦ ARGUMENTS π¦
frameβ the HDMI infoframe itself, like the actual struct with all the info in it πbufferβ the destination buffer, aka where the packed bytes are gonna land π―sizeβ how big that buffer is πΈ
β¨ DESCRIPTION β¨
Okay so what this does: it takes all the information chillin' inside the frame structure and packs it into a binary representation β the kind you can literally write into the corresponding controller registers. No cap, it's a glow-up from struct to bytes π
It also computes the checksum, as required by section 5.3.5 of the HDMI 1.4 specification. Yes, that exact section, yes, the spec checksum, and yes, it does it for you so you don't have to ππ
So on success you get back the number of bytes packed into the binary buffer. On failure? A negative error code. That's the whole deal β
Heads up bestie: negative return = something went wrong. Not a byte count. Do not treat it like one fr fr π
π SEE ALSO π
Kernel file ./drivers/video/hdmi.c β that's the source file, go say hi π§
The whole friend group, in order, all of them, periodt:
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(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_drm_infoframe_unpack(9)hdmi_infoframe_unpack(9)
That's thirty of them, and yes I counted, because I would never leave a single icon off the list ππ₯
Aight that's the page! Huge shoutout to ./drivers/video for the source, October 2026 for the date, and the Kernel API Manual for hosting the whole thing β mwah, love u, go pack some infoframes 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