STRUCT PSI_WRITE_ARGS(9)
π NAME π
okay bestie, welcome to struct psi_write_args(9) from the Kernel API Manual π«Ά β this struct is literally the arguments for the PSI packetizer. That's the whole name, and it's iconic β¨
β¨ SYNOPSIS β¨
Here's the exact shape, no cap β keep it character for character if you're typing it out π
struct psi_write_args {
void *dest_buf;
void *from;
size_t len;
u32 dest_offset;
u16 pid;
bool new_psi_section;
u8 *continuity_counter;
bool is_crc;
u32 dest_buf_sz;
u32 *crc;
};
π§ Members π§
Every member, served fresh, no skips π
dest_bufβ the buffer to write into βοΈfromβ the PSI data to be copied πlenβ how much to write, periodt.dest_offsetβ where to start writing in thedest_bufferπpidβ the TS packet ID π«new_psi_sectionβ set when starting a table section πcontinuity_counterβ incremented on every new packet πis_crcβ set when writing the CRC at the end π§Ύdest_buf_szβ the size of thedest_bufferπcrcβ a pointer to store the crc for this chunk π«Ά
π SEE ALSO π
Kernel file: ./drivers/media/test-drivers/vidtv/vidtv_psi.h β that's the source of truth, iykyk. Also go be nosy and check out 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_write_into(9), vidtv_psi_eit_table_update_sec_len(9), vidtv_psi_eit_event_assign(9).
mwah π β that's the tea from ./drivers/media/test-drivers/v..., dated October 2026, for struct psi_write_args(9). Stay hydrated and may your buffers never overflow π«Άβ¨
π¦ 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