dvb_dmx_swfilter_204(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dvb_dmx_swfilter_204(9) β€” the Linux kernel API manual, bestie edition ✨

okay so this is a page from the Kernel API Manual, and it's about dvb_dmx_swfilter_204 β€” the lil routine that runs the dvb software filter over a buffer stuffed with a whole bunch of MPEG-TS packets that are 204 bytes each πŸŽ€


✨ NAME ✨

dvb_dmx_swfilter_204 β€” use the dvb software filter for a buffer with multiple MPEG-TS packets with 204 bytes each. yes bb, multiple, this one's doing the group-chat version of filtering πŸ’…


🌸 SYNOPSIS 🌸

void dvb_dmx_swfilter_204 (struct dvb_demux *demux , const u8 *buf ,
       size_t count );

like, that's the whole signature, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • demux β€” pointer to struct dvb_demux. this is the main character of the operation, the demuxer itself πŸ’–
  • buf β€” buffer with data to be filtered. your raw lil pile of bytes ✨
  • count β€” number of MPEG-TS packets with size of 204. so it's counting packets, not bytes, keep that straight bestie 😭

🧚 DESCRIPTION 🧚

okay so here's the vibe check: if a DVB packet doesn't start with 0x47, it will seek for the first byte that starts with 0x47. the way it just hunts for that sync byte, lowkey iconic πŸ”₯

Use this routine if the DVB demux fill buffers that may not start with a packet start mark (0x47). yes β€” this is exactly the function for when you can't trust that first byte to be the packet start mark, and you need it to go find one πŸŽ€


πŸ’€ NOTE πŸ’€

The buf size should have size equal to count * 204. fr fr, do the math before you call it, or it's giving undefined nonsense πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./include/media/dvb_demux.h and its whole friend group:


and that's the page, bestie πŸ’œ it lives over in ./include/media, dated October 2026, and it's the Kernel API Manual's very own dvb_dmx_swfilter_204(9) β€” mwah, slay, go filter those 204-byte packets πŸ‘‘πŸ’…

πŸ“¦ where this page comes from