module_i2c_driver(9)
okay so bestie, this is module_i2c_driver(9) from the Kernel API Manual, and it's the helper macro that registers a modular I2C driver. literally the βmake it officialβ button for your I2C driver era. π
β¨ NAME β¨
module_i2c_driver β Helper macro for registering a modular I2C driver. periodt. π
πΈ SYNOPSIS πΈ
module_i2c_driver (__i2c_driver );
π ARGUMENTS π
__i2c_driverβ thei2c_driverstruct. that's the whole argument, bestie. π«Ά
π DESCRIPTION π
This macro is for I2C drivers that do not do anything special in module init/exit. it's giving βdelete the boilerplate, keep the vibesβ because it eliminates a lot of boilerplate. β¨
important: each module may only use this macro once, and calling it replacesmodule_initandmodule_exit. no cap, that's the rule. π
π₯ SEE ALSO π₯
Kernel file ./include/linux/i2c.h is the neighborhood, and these are the linked besties:
i2c_master_recv(9)i2c_master_recv_dmasafe(9)i2c_master_send(9)i2c_master_send_dmasafe(9)struct i2c_device_identity(9)enum i2c_driver_flags(9)struct i2c_driver(9)struct i2c_client(9)struct i2c_board_info(9)I2C_BOARD_INFO(9)struct i2c_algorithm(9)struct i2c_lock_operations(9)struct i2c_timings(9)struct i2c_bus_recovery_info(9)struct i2c_adapter_quirks(9)i2c_lock_bus(9)i2c_trylock_bus(9)i2c_unlock_bus(9)i2c_mark_adapter_suspended(9)i2c_mark_adapter_resumed(9)i2c_check_quirks(9)builtin_i2c_driver(9)
mwah π β source/version: ./include/linux, date: October 2026, module_i2c_driver(9) era. byeee π¦
π¦ 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