vidtv_psi_pat_write_into(9)
π vidtv_psi_pat_write_into(9)
okay so this is a page from the Kernel API Manual and honestly bestie, it's a little niche but we're gonna make it make sense. buckle up π
β¨ NAME β¨
vidtv_psi_pat_write_into β literally writes the PAT into a buffer as MPEG-TS packets. that's the whole vibe. π«
πΈ SYNOPSIS πΈ
u32 vidtv_psi_pat_write_into (struct vidtv_psi_pat_write_args *args );
π¦ ARGUMENTS π¦
argsβ one (1) instance ofstruct vidtv_psi_pat_write_args, no more no less. this is the lil bundle of info the function needs to do its thing. π«Ά
π DESCRIPTION π
so what this function actually does is write the MPEG TS packets for a PAT table into a buffer. yes, those MPEG TS packets. it's giving encoder energy. π₯
and here's the tea: calling code will usually generate the PAT via a call to its init function, which means the caller is responsible for freeing it. you made it, you own it, you clean it up. no cap. π§Ήβ¨
π RETURN π
the number of bytes written into the buffer. and hear me out bestie β this is NOT equal to the size of the PAT, because more space is needed for TS headers during TS encapsulation. so like, don't come for this number thinking it's the PAT size, it's just not. π
π 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)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_write_into(9)vidtv_psi_eit_table_update_sec_len(9)vidtv_psi_eit_event_assign(9)
aaaand that's the whole page, bestie, you ate that ππ this lil cutie lives at ./drivers/media/test-drivers/v... and it's stamped October 2026, so go forth and write those PATs. 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