vidtv_psi_nit_write_into(9)
π vidtv_psi_nit_write_into
okay bestie, welcome to the vidtv_psi_nit_write_into page from the Kernel API Manual β yes the whole manual, we're being fancy today β¨
πΈ NAME πΈ
vidtv_psi_nit_write_into β literally writes a NIT out as MPEG-TS packets into a buffer. That's the whole job. She's focused, she's iconic, she does one thing π
β¨ SYNOPSIS β¨
u32 vidtv_psi_nit_write_into(struct vidtv_psi_nit_write_args *args);
π ARGUMENTS π
argsβ an instance ofstruct vidtv_psi_nit_write_args. That's your little bundle of everything the function needs, no cap π«Ά
π¦ DESCRIPTION π¦
So basically, this function writes the MPEG TS packets for a NIT table into a buffer. NIT, packets, buffer β done π
And here's the part you actually need to remember: calling code will usually generate the NIT via a call to its init function, and therefore it is the caller's responsibility to free it. Yes bestie, you made it, you clean it up. No leaving your NIT lying around like last time π
π₯ RETURN π₯
Returns the number of bytes written into the buffer, as a u32.
Heads up, this is NOT equal to the size of the NIT β because more space is needed for TS headers during TS encapsulation. So don't come for her when the numbers don't match, the headers are eating the extra bytes, periodt π
π SEE ALSO π
- 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)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)
aaaand that's the page π§π before you go β the source path up top got all shy and abbreviated as ./drivers/media/test-drivers/v..., the version stamp says October 2026, and this was page vidtv_psi_nit_write_into(9) all along, iykyk π go free your NITs, bestie, mwah π«Άπ
π¦ 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