dvb_dmx_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the struct dvb_demux you 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 πŸ”₯

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