STRUCT VIDTV_PSI_PMT_WRITE_ARGS(9)
π struct vidtv_psi_pmt_write_args(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a lil struct from the vidtv crew and honestly it's giving "glorified argument bag" but in a slay way π it's literally just the bundle of stuff you gotta hand over when you're writing a PMT section, no cap.
β¨ NAME β¨
struct vidtv_psi_pmt_write_args β the arguments for writing a PMT section π«Ά
πΈ SYNOPSIS πΈ
struct vidtv_psi_pmt_write_args {
char *buf;
u32 offset;
struct vidtv_psi_table_pmt *pmt;
u16 pid;
u32 buf_sz;
u8 *continuity_counter;
u16 pcr_pid;
};
π Members π
okay so member by member, here's the tea β
bufβ the destination buffer, like where the good stuff lands πoffsetβ the offset into the destination buffer, i.e. where inbufwe're starting, ikyk πpmtβ a pointer to the PMT, the main character of this whole operation πpidβ the Program ID πbuf_szβ the size of the destination buffer, gotta know how much room we got bestie πcontinuity_counterβ a pointer to the CC (continuity counter); it gets incremented on every new packet π₯ so yeah, it's tracking the vibes packet by packetpcr_pidβ the TS PID used for the PSI packets. All channels will share the same PCR, fr fr π
π SEE ALSO π
the whole friend group, assembled π«Ά lowkey obsessed with how long this list is:
- 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)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)
ok that's the whole page bestie, go write that PMT section, you're literally gonna eat π β¨
πΈ and that's a wrap! this one lives in ./drivers/media/test-drivers/vidtv/vidtv_psi.h and it's stamped October 2026 β mwah, bye bestie π«Άπ
π¦ 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