hdmi_drm_infoframe_pack(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ hdmi_drm_infoframe_pack(9) ✨

okay so bestie, this one's a kernel API manual page πŸ’… like, it's from the Kernel API Manual, and it's literally about packing a HDMI DRM infoframe β€” we're gonna check it and then write it into a binary buffer. very main character energy, no cap πŸŽ€


🌸 NAME 🌸

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


✨ SYNOPSIS ✨

ssize_t hdmi_drm_infoframe_pack (struct hdmi_drm_infoframe *frame , void
*buffer , size_t size );
ngl the line wrap on that is giving ✨PDF energy✨ but that's literally how it's written, so we keep it exactly, fr fr 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • frame β€” the HDMI DRM infoframe itself, the little guy we're inspecting πŸ’–
  • buffer β€” your destination buffer, the place the packed bytes are headed 🧚
  • size β€” the size of that buffer, so we don't go feral and overflow it πŸ™ˆ

πŸ‘‘ DESCRIPTION πŸ‘‘

So here's the vibe check first: this function validates that the infoframe is consistent, and it updates the derived fields β€” like the length, that's the classic example β€” based on the other fields ✨. Only after that glow-up does it pack all the information inside the frame structure into a binary representation that can be written into the corresponding controller registers πŸ’… iconic behaviour honestly.

It also computes the checksum as required by section 5.3.5 of the HDMI 1.4 specification β€” yes bestie, a whole numbered spec section, we're being so official today πŸ“œπŸŒΈ

And what does it give you back? It returns the number of bytes packed into the binary buffer β€” or a negative error code on failure 😭 so like, check your return value, that's the whole point, iykyk.


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/video/hdmi.c πŸ”₯ β€” and then the whole friend group, all of them, in order, no one left out:


that's the whole page bestie, go pack those frames πŸ’œ

β€” sign-off time: this one lives at ./drivers/video and the page is dated October 2026 ⭐ mwah, love that for us πŸ“πŸ’«

πŸ“¦ where this page comes from