dvb_dmx_init(9)
β¨ dvb_dmx_init β¨
ok so bestie, welcome to the dvb_dmx_init(9) page from the Kernel API Manual π
this one's short but it's lowkey the moment everything starts, so pay attention π
πΈ NAME πΈ
dvb_dmx_init β initialize a digital TV demux struct π¦
β SYNOPSIS β
int dvb_dmx_init (struct dvb_demux *demux );
π ARGUMENTS π
demuxβ thestruct dvb_demuxyou want to be initialized β¨ that's the one, that's the whole parameter, slay.
π DESCRIPTION π
ok so here's the tea π« before you can even think about registering a digital TV demux struct, drivers should call this routine. No skipping, no shortcuts β it's giving prerequisite, iykyk π
And on its typical usage, some fields should be initialized at the driver before calling it. So like, the driver does its little pre-game and then hands it over π
A typical usecase is:
dvb->demux.dmx.capabilities =
DMX_TS_FILTERING | DMX_SECTION_FILTERING |
DMX_MEMORY_BASED_FILTERING;
dvb->demux.priv = dvb;
dvb->demux.filternum = 256;
dvb->demux.feednum = 256;
dvb->demux.start_feed = driver_start_feed;
dvb->demux.stop_feed = driver_stop_feed;
ret = dvb_dmx_init(dvb->demux);
if (ret < 0)
return ret;
look at that. capabilities set, priv pointed at dvb, filternum and feednum both at 256 (twinsies π), start_feed and stop_feed wired up to driver_start_feed and driver_stop_feed, and then dvb_dmx_init(dvb->demux) gets called β with a ret < 0 check right after so you bail out with return ret if things went sideways π periodt.
π₯ SEE ALSO π₯
- Kernel file
./include/media/dvb_demux.h enum dvb_dmx_filter_type(9)enum dvb_dmx_state(9)struct dvb_demux_filter(9)struct dvb_demux_feed(9)struct dvb_demux(9)dvb_dmx_release(9)dvb_dmx_swfilter_packets(9)dvb_dmx_swfilter(9)dvb_dmx_swfilter_204(9)dvb_dmx_swfilter_raw(9)
like, go read them all bestie, they're literally right there π§
ngl this is a kernel API page, so the usual "don't break your system" energy applies β read the fields you need to set before you call, fr fr π
π that's the whole page, no cap π this one lives in ./include/media, dated October 2026 β mwah, go init that demux queen ππ
π¦ 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