STRUCT DESC_WRITE_ARGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct desc_write_args(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this little page is all about struct desc_write_args β€” literally the args you hand over when you wanna write a descriptor. yes, lowercase struct in the title, we respect the source, periodt.


🌸 NAME 🌸

struct desc_write_args β€” Arguments in order to write a descriptor. that's it, that's the whole vibe. it's giving "here's everything you need to actually go write this thing" πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct desc_write_args {
    void *dest_buf;
    u32 dest_offset;
    struct vidtv_psi_desc *desc;
    u16 pid;
    u8 *continuity_counter;
    u32 dest_buf_sz;
    u32 *crc;
 };

look at her. seven members, all iconic, no notes πŸ’… (yes there's a stray space before that closing brace β€” we're keeping it exactly as she came into this world, no cap πŸ”₯)


🌈 Members 🌈

okay so let's go member by member, because each one is a main character in their own right:

  • dest_buf β€” The buffer to write into. this is literally the canvas, the whole destination, the place where the writing happens πŸ–ŠοΈβœ¨
  • dest_offset β€” where to start writing in the dest_buffer. not in the dest_buf field name β€” the manpage says dest_buffer right there β€” copy it exactly, iykyk πŸ™ˆ as in: the position where the pen first touches the paper.
  • desc β€” A pointer to the descriptor. just a pointer. pointing at the descriptor. slay 🫢
  • pid β€” TS packet ID. that's the transport-stream packet's identifier πŸŽ€
  • continuity_counter β€” Incremented on every new packet. every. single. new. packet. she just keeps going up πŸ’€
  • dest_buf_sz β€” The size of the dest_buffer. gotta know how big the canvas is before you paint on it, fr fr πŸ–ŒοΈ
  • crc β€” a pointer to store the crc for this chunk. that's crc, lowercase, right here in the source, and we are not touching it ⭐

πŸ‘‘ SEE ALSO πŸ‘‘

go check these out, bestie, they're the whole friend group πŸ’œ β€” Kernel file ./drivers/media/test-drivers/vidtv/vidtv_psi.h and then:

all of them. every last one. no skipping, bestie, we don't do that here πŸ§šπŸ’–


and that's the page!! πŸŽ€ quick lil sign-off so you know where this came from: the source line reads ./drivers/media/test-drivers/v... (yes it's truncated in the original, we're not out here guessing at the rest, that would be lying and lying is not the vibe πŸ™ˆ) and it's dated October 2026 πŸ’« so mark your calendars, she's from the future. mwah, go write some descriptors responsibly πŸ’…πŸŒˆ

πŸ“¦ where this page comes from