hdmi_drm_inf...me_pack_only(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

hdmi_drm_infoframe_pack_only β€” okay so this is the one that writes an HDMI DRM infoframe into a binary buffer, bestie.

So this is a kernel API manual page, and yes, the vibe is immaculate β€” but the signature is very serious, so don't come for me.


✨ SYNOPSIS ✨

ssize_t hdmi_drm_infoframe_pack_only (const struct hdmi_drm_infoframe
*frame , void *buffer , size_t size );

Like, that's the whole thing. Three args. No drama. πŸŽ€


🫢 ARGUMENTS 🫢

  • frame β€” the HDMI DRM infoframe. It's a const struct hdmi_drm_infoframe *, so hands off, we're just reading her. πŸ‘‘
  • buffer β€” the destination buffer. This is where the packed bytes are gonna live, it's giving "moving in" energy. πŸ’…
  • size β€” the size of buffer. Literally just how much room you gave it. Be honest about it. ⭐

🌸 DESCRIPTION 🌸

Okay so here's the tea β˜• β€” this function packs all the information contained in the frame structure into a binary representation, the kind that can be written into the corresponding controller registers. Like, it takes the struct and makes it registers-ready. Slay.

Not only that, it also computes the checksum as required by section 5.3.5 of the HDMI 1.4 specification. Section 5.3.5! She's got receipts! πŸ“œβœ¨

And what does it give back? It returns the number of bytes packed into the binary buffer β€” or a negative error code on failure. 😭 So if you see a negative number, that's not a byte count, that's the universe telling you something went wrong. Do not ignore her.

ngl, check that return value. A negative number is not a size. It is a cry for help. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./drivers/video/hdmi.c β€” that's home base, go say hi. 🏠

And the whole friend group, no cap:

The disrespect of there being this many of them 😭 but honestly? iconic. Go read them all. iykyk.


And that's the page!! πŸŽ€πŸ’–βœ¨

This cutie lives in ./drivers/video, she's dated October 2026, and she answers to the manual name hdmi_drm_inf...me_pack_only(9) β€” from the Kernel API Manual, obviously. Periodt. πŸ’…πŸ‘‘πŸ¦‹

πŸ“¦ where this page comes from