dvb_attach(9)
π dvb_attach(9) β from the Kernel API Manual, bestie
okay so welcome to the glow-up era of dvb_attach, a lil kernel API manual page that's about to become your new hyperfixation. this one lives in the DVB corner of the kernel and it's giving "tiny function, big responsibilities." let's get into it π
β¨ NAME β¨
dvb_attach β the function that attaches a DVB frontend into the DVB core. that's it, that's the whole vibe. it's the matchmaker, the wingman, the "you two should meet" of the DVB world π«Ά
πΈ SYNOPSIS πΈ
dvb_attach (FUNCTION , ARGS... );
π¦ ARGUMENTS π¦
FUNCTIONβ a function that lives on a frontend module and needs to be called. this is the main character of the whole operation πARGSβ the arguments you're passing toFUNCTION. yes, all of them. it'sARGS...for a reason, she takes what she takes π
π DESCRIPTION π
so here's the tea, bestie: this ancillary function loads a frontend module at runtime and then runs your FUNCTION function right there inside it, with your ARGS. lowkey iconic. β¨
because it bumps the symbol usage count, you must call dvb_detach at unregister time. that's not optional, that's the rule. no cap. if you skip the detach you're gonna have a bad time π
NOTE: π ok so storytime β in the past, DVB modules (mainly frontends) were bound via thedvb_attachmacro, which does an ugly hack using I2C low level functions. yeah. we don't do that anymore. such usage is deprecated and will be removed soon. instead, you should usedvb_module_probe. periodt. π«Ά
π§ SEE ALSO π§
the whole squad, fr fr β all of these live in the Kernel file ./include/media/dvbdev.h:
enum dvb_device_type(9)struct dvb_adapter(9)struct dvb_device(9)struct dvbdevfops_node(9)dvb_device_get(9)dvb_device_put(9)dvb_register_adapter(9)dvb_unregister_adapter(9)dvb_register_device(9)dvb_remove_device(9)dvb_unregister_device(9)dvb_create_media_graph(9)dvb_register_media_controller(9)dvb_get_media_controller(9)dvb_generic_open(9)dvb_generic_release(9)dvb_generic_ioctl(9)dvb_usercopy(9)dvb_module_probe(9)dvb_module_release(9)dvb_detach(9)
and that's the whole page, bestie!! π this cutie comes to you straight from ./include/media, dated October 2026, and it's filed under dvb_attach(9) in the Kernel API Manual. go forth and detach responsibly. mwah πβ¨π¦
π¦ 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