vidtv_psi_eit_write_into(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vidtv_psi_eit_write_into(9) β€” like, the EIT-to-MPEG-TS writer, bestie ✨

okay so this is a page from the Kernel API Manual (yes, the kernel one, the big one πŸ‘‘) and it's all about vidtv_psi_eit_write_into. Buckle up, it's short but it eats πŸ“


🌸 NAME 🌸

vidtv_psi_eit_write_into β€” writes the EIT as MPEG-TS packets into a buffer. that's the whole vibe, no cap πŸ’–


✨ SYNOPSIS ✨

u32 vidtv_psi_eit_write_into(struct vidtv_psi_eit_write_args *args);

πŸŽ€ ARGUMENTS πŸŽ€

  • args β€” an instance of struct vidtv_psi_nit_write_args
okay so real talk, the page literally says vidtv_psi_nit_write_args here and not the eit one 😭 i'm not touching it, i'm not "fixing" it, i'm just delivering it to you exactly as it was handed to me. verbatim queen behavior πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so what this function does is: it writes the MPEG TS packets for an EIT table into a buffer. iconic. no notes πŸ”₯

and here's the part you actually need to remember β€” calling code will usually generate the EIT by calling its init function, and because of that, the calling code is the one responsible for freeing it. like, you made it, you clean it up, that's the rule 🫢😭


⭐ RETURN ⭐

it returns the number of bytes written into the buffer. and listen, this is the lil gotcha that trips people up: that number is NOT equal to the size of the EIT, because more space is needed for TS headers during TS encapsulation. so don't be out here assuming bytes-written == table size, you WILL be humbled πŸ’€


🌈 SEE ALSO 🌈

the whole friend group, gathered for you πŸ’œ:


mwah πŸ’‹ that's the page!! sourced from ./drivers/media/test-drivers/v... and dated October 2026 β€” future-dated AND iconic, we love a timestamp with main character energy πŸ§šβ€β™€οΈπŸ’« go write some TS packets, bestie, you've got this 🫢

πŸ“¦ where this page comes from