STRUCT DMX_SECTION_FILTER(9)
π¦ 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 fromfilter_valueare 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 tostruct 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 π«Ά:
enum ts_filter_type(9)struct dmx_ts_feed(9)struct dmx_section_feed(9)dmx_ts_cb(9)dmx_section_cb(9)enum dmx_frontend_source(9)struct dmx_frontend(9)enum dmx_demux_caps(9)DMX_FE_ENTRY(9)struct dmx_demux(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms