hdmi_avi_infoframe_pack(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ hdmi_avi_infoframe_pack(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual, section 9, and today's main character is hdmi_avi_infoframe_pack πŸ’… like this is the kernel's HDMI AVI infoframe glow-up page and we're gonna get into it.


✨ NAME ✨

hdmi_avi_infoframe_pack β€” check a HDMI AVI infoframe, and write it to binary buffer πŸ¦‹


🌸 SYNOPSIS 🌸

ssize_t hdmi_avi_infoframe_pack (struct hdmi_avi_infoframe *frame , void *buffer , size_t size );

that's the whole vibe, no cap ✨


πŸ’– ARGUMENTS πŸ’–

  • frame β€” the HDMI AVI infoframe itself, the star of the show πŸ‘‘
  • buffer β€” destination buffer, aka where the packed bytes are gonna live πŸŽ€
  • size β€” size of buffer, so we know how much room we've got to work with 🫢

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea β˜• β€” this function validates that the infoframe is consistent, and it also updates derived fields (eg. length) based on other fields. literally it looks at what you gave it, goes "mmhmm, that tracks", and fixes up the stuff that's derived 🧚

after that little glow-up, it packs the information contained in the frame structure into a binary representation that can be written into the corresponding controller registers. it's giving "translator", it's giving "from struct to bytes", we love a transformation arc πŸ’«

this function also computes the checksum as required by section 5.3.5 of the HDMI 1.4 specification. yes bestie, the checksum is mandatory, it's not optional, it's the whole point πŸ™ˆ

Returns the number of bytes packed into the binary buffer or a negative error code on failure. so either a happy byte count or a lil negative number telling you it didn't work 😭

fr fr, keep an eye on that return value β€” negative means something went sideways and you should absolutely not treat it as a byte count πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/video/hdmi.c πŸ’œ and literally the entire extended universe of HDMI infoframe friends:


and that's the page!! 🫢 this lil beauty lives over in ./drivers/video, dated October 2026 β€” mwah, slay, periodt πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from