module_w1_family(9)
πΈ module_w1_family(9) β Kernel API Manual πΈ
okay so bestie, welcome to module_w1_family(9) β¨ this is the little helper macro page, and it's giving "less boilerplate, more slay" energy π
β¨ NAME β¨
module_w1_family β helper macro for registering a 1-Wire families π«Ά
π SYNOPSIS π
module_w1_family (__w1_family );
π¦ ARGUMENTS π¦
__w1_familyβ aw1_familystruct, periodt π
π DESCRIPTION π
okay so module_w1_family is the helper macro for 1-Wire families that literally do not do anything special in module init/exit. no cap, it eliminates a lot of boilerplate πβ¨
each module may only use this macro once, and calling it replaces module_init and module_exit ππ₯
bestie, this is the "one and done" macro β use it once per module, and it takes over themodule_init/module_exitsituation for you π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/w1.h struct w1_reg_num(9)struct w1_slave(9)struct w1_bus_master(9)enum w1_master_flags(9)struct w1_master(9)struct w1_family_ops(9)struct w1_family(9)
signed, sealed, delivered from ./include/linux, dated October 2026 β 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