vidtv_psi_eit_write_into(9)
π 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 ofstruct vidtv_psi_nit_write_args
okay so real talk, the page literally saysvidtv_psi_nit_write_argshere and not theeitone π 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 π:
- Kernel file
./drivers/media/test-drivers/vidtv/vidtv_psi.h struct psi_write_args(9)struct desc_write_args(9)struct crc32_write_args(9)struct header_write_args(9)vidtv_psi_sdt_service_assign(9)vidtv_psi_desc_assign(9)vidtv_pmt_desc_assign(9)vidtv_sdt_desc_assign(9)vidtv_psi_pat_program_assign(9)vidtv_psi_pmt_stream_assign(9)vidtv_psi_pmt_create_sec_for_each_pat_entry(9)vidtv_psi_pmt_get_pid(9)vidtv_psi_pat_table_update_sec_len(9)vidtv_psi_pmt_table_update_sec_len(9)vidtv_psi_sdt_table_update_sec_len(9)struct vidtv_psi_pat_write_args(9)vidtv_psi_pat_write_into(9)struct vidtv_psi_sdt_write_args(9)vidtv_psi_sdt_write_into(9)struct vidtv_psi_pmt_write_args(9)vidtv_psi_pmt_write_into(9)vidtv_psi_find_pmt_sec(9)struct vidtv_psi_table_transport(9)struct vidtv_psi_table_nit(9)struct vidtv_psi_nit_write_args(9)vidtv_psi_nit_write_into(9)struct vidtv_psi_eit_write_args(9)vidtv_psi_eit_table_update_sec_len(9)vidtv_psi_eit_event_assign(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms