STRUCT VIDTV_PSI_PMT_WRITE_ARGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct vidtv_psi_pmt_write_args(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ this one's a lil struct from the vidtv crew and honestly it's giving "glorified argument bag" but in a slay way πŸŽ€ it's literally just the bundle of stuff you gotta hand over when you're writing a PMT section, no cap.


✨ NAME ✨

struct vidtv_psi_pmt_write_args β€” the arguments for writing a PMT section 🫢


🌸 SYNOPSIS 🌸

struct vidtv_psi_pmt_write_args {
    char *buf;
    u32 offset;
    struct vidtv_psi_table_pmt *pmt;
    u16 pid;
    u32 buf_sz;
    u8 *continuity_counter;
    u16 pcr_pid;
 };

πŸŽ€ Members πŸŽ€

okay so member by member, here's the tea β˜•

  • buf β€” the destination buffer, like where the good stuff lands πŸ’–
  • offset β€” the offset into the destination buffer, i.e. where in buf we're starting, ikyk πŸ‘‘
  • pmt β€” a pointer to the PMT, the main character of this whole operation 🌟
  • pid β€” the Program ID πŸ†”
  • buf_sz β€” the size of the destination buffer, gotta know how much room we got bestie πŸ“
  • continuity_counter β€” a pointer to the CC (continuity counter); it gets incremented on every new packet πŸ”₯ so yeah, it's tracking the vibes packet by packet
  • pcr_pid β€” the TS PID used for the PSI packets. All channels will share the same PCR, fr fr πŸ’€

πŸ’œ SEE ALSO πŸ’œ

the whole friend group, assembled 🫢 lowkey obsessed with how long this list is:


ok that's the whole page bestie, go write that PMT section, you're literally gonna eat πŸ’…βœ¨

🌸 and that's a wrap! this one lives in ./drivers/media/test-drivers/vidtv/vidtv_psi.h and it's stamped October 2026 β€” mwah, bye bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from