STRUCT VIDTV_MUX_PID_CTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct vidtv_mux_pid_ctx(9) πŸ’–

okay bestie, so this is a page straight out of the Kernel API Manual, and it's all about struct vidtv_mux_pid_ctx β€” literally the place where the context for a given TS PID lives. tiny struct, big job. let's get into it 🫢


✨ SYNOPSIS ✨

like, here's the whole vibe of the struct, no cap:

struct vidtv_mux_pid_ctx {
    u16 pid;
    u8 cc;
    struct hlist_node h;
 };

🌸 Members 🌸

  • pid β€” the TS PID. that's it, that's the whole thing. it's a u16 and it holds the TS PID πŸ’…
  • cc β€” the continuity counter for this PID. ok so this one's important: it gets incremented on every TS pack, and it wraps around at 0xf0. and if the decoder notices a sudden jump in this counter? 😭 that will trigger a discontinuity state. so like… keep an eye on it, iykyk.
  • h β€” this little icon is embedded in a hash table, mapping pid -> vidtv_mux_pid_ctx. it's giving main character energy in a data structure ✨

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file ./drivers/media/test-drivers/vidtv/vidtv_mux.h struct vidtv_mux_timing(9), struct vidtv_mux_si(9), struct vidtv_mux(9), struct vidtv_mux_init_args(9) β€” go read those too, they're lowkey all connected πŸ‘‘


πŸ’€ reminder that this page is from ./drivers/media/test-drivers/v... β€” that's the source path, bestie, don't @ me.

and that's the whole page, periodt. 🌈 this one's from the Kernel API Manual, dated October 2026, and it's literally titled struct vidtv_mux_pid_ctx(9). slay. bye bestie πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from