STRUCT DMX_SECTION_FILTER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct dmx_section_filter(9) πŸ¦‹

okay so this is a page from the Kernel API Manual, bestie β€” it's literally all about struct dmx_section_filter, and no cap, it's the whole vibe check for how section filtering works. let's get into it πŸ’…


✨ NAME ✨

struct dmx_section_filter β€” the structure that describes a section filter. that's it, that's the whole thing, she's the main character πŸŽ€


🌸 SYNOPSIS 🌸

struct dmx_section_filter {
    u8 filter_value[DMX_MAX_FILTER_SIZE];
    u8 filter_mask[DMX_MAX_FILTER_SIZE];
    u8 filter_mode[DMX_MAX_FILTER_SIZE];
    struct dmx_section_feed *parent;
    void *priv;
 };

there she is 😭 note the lil extra space before the closing brace, we keep it exactly as it is, no editing, periodt.


πŸ’– Members πŸ’–

  • filter_value β€” holds up to 16 bytes (128 bits) of the TS section header that the section filter is gonna match against. think of it as the thing you're looking for πŸ”
  • filter_mask β€” holds a 16 bytes (128 bits) filter mask, and the bits it specifies from filter_value are the ones that get used on the filter match logic. she's the bouncer at the door, deciding who counts πŸ’…
  • filter_mode β€” holds a 16 bytes (128 bits) filter mode. that's the whole description, she's mysterious like that πŸ™ˆ
  • parent β€” back-pointer to struct dmx_section_feed. she knows where she came from, iconic 🫢
  • priv β€” pointer to private data of the API client. your stuff, your business, not ours 🀫

🌈 Description 🌈

okay so this is the important bit, bestie, listen up πŸ‘‘

filter_mask controls which bits of filter_value get compared with the section headers/payload. on a binary value of 1 in filter_mask, the corresponding bits are compared. and the filter only accepts sections that are equal to filter_value in all the tested bit positions. so like, if it don't match in every single spot you tested, she's not letting it through, fr fr ✨

lowkey the way this works is: mask bit 1 = "yeah we're checking this one", and everything has to line up or it's a no from her πŸ’€

⭐ SEE ALSO ⭐

the kernel file ./include/media/demux.h is where the lore lives, and here's the whole friend group 🫢:


aaaand that's the page! πŸŽ€ she lives in ./include/media, dated October 2026 β€” go off, little struct, you ate that πŸ’œπŸ”₯

πŸ“¦ where this page comes from