hdmi_audio_i...me_pack_only(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hdmi_audio_infoframe_pack_only β€” a Kernel API Manual moment

okay so bestie, welcome to the Kernel API Manual page for hdmi_audio_infoframe_pack_only(9), like the function name itself is a whole mouthful but we're gonna get through it together 🫢


✨ NAME ✨

hdmi_audio_infoframe_pack_only β€” write HDMI audio infoframe to binary buffer

like. that's the whole vibe. it packs the thing into bytes. slay.


πŸŽ€ SYNOPSIS πŸŽ€

ssize_t hdmi_audio_infoframe_pack_only (const struct
       hdmi_audio_infoframe *frame , void *buffer , size_t size );

not me typing const struct hdmi_audio_infoframe *frame three times to make sure i got it right 😭 copy it exactly, alright? character for character, no cap.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • frame β€” the HDMI audio infoframe, aka the actual content. this is your main character. frame, if you will.
  • buffer β€” destination buffer πŸ’Œ the little home where the packed bytes get to live.
  • size β€” size of buffer. yes queen, you have to tell it how big the destination is. it's not a mind reader.

🌸 DESCRIPTION 🌸

okay so here's the tea β˜• β€” this function packs the information contained in the frame structure into a binary representation that can be written into the corresponding controller registers. literally it's giving "turn my nice struct into raw bytes so the hardware understands" energy.

and the way that it also computes the checksum as required by section 5.3.5 of the HDMI 1.4 specification?? iykyk, that's the iconic part. checksum girlies rise ✨

what does it return, you ask? good question bestie:

  • it returns the number of bytes packed into the binary buffer β€” the good ending πŸ’–
  • or a negative error code on failure β€” the not-so-good ending 😭 handle it, don't ignore it, fr fr

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/video/hdmi.c and honestly the whole friend group:

like... that's thirty entries bestie. thirty. i counted. go read some of them, they're all serving πŸ’…


that's the whole page, mwah πŸ’‹ this little number lives in ./drivers/video, dated October 2026, filed under hdmi_audio_i...me_pack_only(9) β€” yes the name is truncated in the header, no i don't know why, ask the manpage tooling πŸ™ˆ go pack some infoframes, ily, bye πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from