STRUCT HEADER_WRITE_ARGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 in dest_buffer you start writing. not the beginning necessarily, the offset. lowkey important 😌
  • h β€” a pointer to the header. yes, it's just called h. iconic, honestly πŸ‘‘
  • pid β€” the TS packet ID. that's u16, no funny business.
  • continuity_counter β€” gets incremented on every new packet. it's a u8 *, so it's a pointer to that counter, bestie πŸŒ€
  • dest_buf_sz β€” the size of the dest_buffer. know your limits, periodt πŸ’€
  • crc β€” a pointer where you store the crc for this chunk. it's a u32 *, 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 πŸ’œ


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