STRUCT PSI_WRITE_ARGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the dest_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 the dest_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