module_i3c_i2c_driver(9)
π module_i3c_i2c_driver β like, the Kernel API Manual, bestie
okay so real talk, this one lives in the Kernel API Manual and it's called module_i3c_i2c_driver, and it's genuinely one of those macros that just gets you. no notes. π«Ά
β¨ NAME β¨
module_i3c_i2c_driver β the macro that registers a module giving you both an I3C driver and an I2C driver. two for the price of one, we love a bundle π
π SYNOPSIS π
module_i3c_i2c_driver (__i3cdrv , __i2cdrv );
that's it. that's the whole call. slay. β¨
πΈ ARGUMENTS πΈ
__i3cdrvβ the I3C driver you wanna register π__i2cdrvβ the I2C driver you wanna register π¦
two little drivers, hand in hand, walking into the kernel together. iconic.
π« DESCRIPTION π«
so basically this macro hands you generic init/exit functions that just... register and unregister an I3C driver and an I2C driver. no cap, that's the whole job. π₯
the cute part? this macro can be used even if CONFIG_I3C is disabled β and in that case, only the I2C driver will be registered. it adapts. it's flexible. main character energy fr fr π
the vibe check: this should be used by any driver that does not require extra init/cleanup steps. if you've got custom setup work to do, this macro is not the one for you, bestie β it's strictly the no-fuss, plug-and-play situation. π
π SEE ALSO π
- Kernel file
./include/linux/i3c/device.h enum i3c_error_code(9)enum i3c_xfer_mode(9)struct i3c_xfer(9)enum i3c_dcr(9)struct i3c_device_info(9)struct i3c_driver(9)dev_to_i3cdev(9)module_i3c_driver(9)i3c_i2c_driver_register(9)i3c_i2c_driver_unregister(9)struct i3c_ibi_setup(9)
like a whole friend group of references, and honestly? every single one of them ate. go read them, iykyk πβ¨
okay that's the whole page, mwah π β this lil beauty comes from the kernel source at ./include/linux/i3c, dated October 2026, and it's literally the module_i3c_i2c_driver(9) page. go forth and register your drivers, bestie. ππ¦π
π¦ 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