vidtv_psi_sdt_write_into(9)
β¨ vidtv_psi_sdt_write_into(9) β¨
okay bestie so this is from the Kernel API Manual, and we're talking about vidtv_psi_sdt_write_into β like, the actual function name, that's the whole vibe. Buckle up, it's a short one but it matters π«Ά
πΈ SYNOPSIS πΈ
u32 vidtv_psi_sdt_write_into (struct vidtv_psi_sdt_write_args *args );
literally that's it. one single u32, one single pointer. clean. iconic. no notes π
π ARGUMENTS π
argsβ an instance ofstruct vidtv_psi_sdt_write_args. yeah that's the whole thing, she just wants her lil struct okay π
π DESCRIPTION π
so what does she do?? this function writes the MPEG TS packets for a SDT table into a buffer. that's the job. that's the assignment. no cap. π¦
ngl, the calling code is usually gonna generate the SDT first by calling its init function β so bestie, you own that memory now and it's your responsibility to free it. the function does not free it for you, no freebies here π
π₯ RETURN π₯
she returns the number of bytes written into the buffer. and here's the plot twist: that number is NOT equal to the size of the SDT, because TS encapsulation needs extra space for the TS headers along the way. so likeβ¦ don't assume those two numbers match, okay?? they're different girlies π«Ά
π SEE ALSO π
this list is long bestie, grab a snack, we're going through all of it π
- 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)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_write_into(9)vidtv_psi_eit_table_update_sec_len(9)vidtv_psi_eit_event_assign(9)
like, go read those too. iykyk π
lowkey reminder: we stan a function that tells you exactly what it returns and what it does not return. transparency queen π
okay that's the whole page!! mwah π this one came out of ./drivers/media/test-drivers/v... and the date on the lil stamp is October 2026. go forth and write those SDT packets, bestie β you're the main character of this buffer now βπβ¨
π¦ 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