STRUCT DMX_FILTER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct dmx_filter(9) β€” Kernel API Manual, but make it make sense πŸ’…

okay bestie, so this is a page from the Linux Kernel API Manual and it's literally about struct dmx_filter β€” the little icon that specifies a section header filter ✨


🌸 NAME 🌸

struct dmx_filter β€” Specifies a section header filter. that's it, that's the whole job description πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

no cap, here's the whole struct, character for character:

struct dmx_filter {
    __u8 filter[DMX_FILTER_SIZE];
    __u8 mask[DMX_FILTER_SIZE];
    __u8 mode[DMX_FILTER_SIZE];
 };

she's compact, she's iconic, she has exactly three arrays πŸ’œ


✨ Members ✨

  • filter β€” a bit array holding the bits you want to be matched at the section header. it's giving "here's what I'm looking for" πŸ”
  • mask β€” the bits that are actually valid inside the filter bit array. lowkey the vibe check for which bits even count πŸ’…
  • mode β€” the mode of match, and this one needs a lil explanation bestie: if the bit is zero, it will match if equal (a positive match); if the bit is one, it will match if the bit is negated πŸ™ˆ so zero = "same please", one = "flip it" ✨

πŸ’€ Note πŸ’€

fr fr, all arrays in this struct have a size of DMX_FILTER_SIZE (16 bytes). all three. sixteen bytes each. consistency queen πŸ‘‘


🫢 SEE ALSO 🫢

literally go read these next, they're all in the Kernel file ./include/uapi/linux/dvb/dmx.h:

  • enum dmx_output(9)
  • enum dmx_input(9)
  • enum dmx_ts_pes(9)
  • struct dmx_sct_filter_params(9)
  • struct dmx_pes_filter_params(9)
  • struct dmx_stc(9)
  • enum dmx_buffer_flags(9)
  • struct dmx_buffer(9)
  • struct dmx_requestbuffers(9)
  • struct dmx_exportbuffer(9)

and that's the whole page, bestie 🌈 this iconic little entry lives in ./include/uapi/linux/dvb, dated October 2026 β€” mwah, sending you a big kiss, go read the dmx headers, you're gonna slay πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from