STRUCT HEADER_WRITE_ARGS(9)
β¨ struct header_write_args(9) β¨
okay so this is a page straight out of the Kernel API Manual, and it's all about one lil struct, bestie β let's get into it π
π NAME π
struct header_write_args β literally the argument bundle you pass in when you want to write the common table header. that's it, that's the whole vibe π
π¦ SYNOPSIS π¦
struct header_write_args {
void *dest_buf;
u32 dest_offset;
struct vidtv_psi_table_header *h;
u16 pid;
u8 *continuity_counter;
u32 dest_buf_sz;
u32 *crc;
};
yes bestie, it's a struct, it's got seven fields, and every single one of them is about to be explained. no skips, no cap π«Ά
πΈ Members πΈ
okay so here's the field-by-field breakdown, and ngl this part is the whole main character of the page β¨
dest_bufβ the buffer you're writing into. that's the canvas, the destination, the place where the bytes go πdest_offsetβ where indest_bufferyou start writing. not the beginning necessarily, the offset. lowkey important πhβ a pointer to the header. yes, it's just calledh. iconic, honestly πpidβ the TS packet ID. that'su16, no funny business.continuity_counterβ gets incremented on every new packet. it's au8 *, so it's a pointer to that counter, bestie πdest_buf_szβ the size of thedest_buffer. know your limits, periodt πcrcβ a pointer where you store the crc for this chunk. it's au32 *, and yes it wants somewhere to live π
fr fr, that's the whole struct. seven fields, zero drama, maximum usefulness π§
π SEE ALSO π
Kernel file ./drivers/media/test-drivers/vidtv/vidtv_psi.h β that's the spot, iykyk π
and here's the full squad of related stuff, all present and accounted for, no one left behind π
struct psi_write_args(9)struct desc_write_args(9)struct crc32_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)
and that's the page, bestie!! π this lil beauty comes from ./drivers/media/test-drivers/v... and it's dated October 2026 β go forth and write those headers, you've absolutely got this πβ¨ππ¦πΈπ
π«Ά
π¦ 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