STRUCT CRC32_WRITE_ARGS(9)
π struct crc32_write_args(9) π
okay bestie, so this is a page from the Kernel API Manual, and it's all about struct crc32_write_args β literally the arguments you need in order to write the CRC at the end of the PSI tables. no cap, that's the whole job. π
β¨ SYNOPSIS β¨
struct crc32_write_args {
void *dest_buf;
u32 dest_offset;
__be32 crc;
u16 pid;
u8 *continuity_counter;
u32 dest_buf_sz;
};
like, that's the whole struct. six lil fields. she's compact, she's iconic. π
πΈ Members πΈ
so here's the group chat roll call of every single member, no one gets left out:
dest_bufβ the buffer you're writing into. the canvas. the moment. π¦dest_offsetβ where you start writing inside thedest_buffer. like, where the pen first touches the paper.crcβ the actual CRC value you're writing. the main character, honestly. βpidβ TS packet ID. yes, that kind of ID.continuity_counterβ gets incremented on every new packet. she keeps the count going, every single time, fr fr. π₯dest_buf_szβ the size of thedest_buffer. gotta know how much room you have, bestie. π
π SEE ALSO π
lowkey a whole friend group here, so let's list every single one because we don't do half-finished recaps in this house:
- Kernel file
./drivers/media/test-drivers/vidtv/vidtv_psi.h struct psi_write_args(9)struct desc_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)
π reminder that this one lives at ./drivers/media/test-drivers/v... β yes, the path is genuinely abbreviated like that in the page, don't come for me. π«Ά
and that's the vibe check, bestie β this page came from ./drivers/media/test-drivers/v..., dated October 2026, and it's the struct crc32_write_args(9) entry. go forth and write those CRCs, slay. πβ¨π
π¦ 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