devm_i2c_new_dummy_device(9)
β¨ NAME β¨
okay so welcome to devm_i2c_new_dummy_device(9), fresh from the Kernel API Manual, bestie π the whole point of this icon is to return a new i2c device bound to a dummy driver β that's the name and the game, periodt.
πΈ SYNOPSIS πΈ
struct i2c_client * devm_i2c_new_dummy_device (struct device *dev ,
struct i2c_adapter *adapter , u16 address );
π«Ά ARGUMENTS π«Ά
devβ device the managed resource is bound to. This is the device your managed resource is tied to, no cap πadapterβ the adapter managing the device. It's the adapter in charge, the main character of this situation.addressβ seven bit address to be used. Yep, the seven bit address, exactly as advertised.
π΄ CONTEXT π΄
can sleep π΄ β literally, that's the context. This one can sleep, bestie.
π DESCRIPTION π
Okay so here's the tea: this is the device-managed version of i2c_new_dummy_device. It returns the new i2c client or an ERR_PTR in case of an error. That's the whole flex β new i2c client, or ERR_PTR if things go sideways. π
π₯ SEE ALSO π₯
Kernel file: ./drivers/i2c/i2c-core-base.c β and here's the whole recommended-reading squad:
i2c_verify_client(9)i2c_adapter_lock_bus(9)i2c_adapter_trylock_bus(9)i2c_adapter_unlock_bus(9)i2c_new_client_device(9)i2c_unregister_device(9)i2c_find_device_by_fwnode(9)i2c_new_dummy_device(9)i2c_new_ancillary_device(9)i2c_verify_adapter(9)i2c_handle_smbus_host_notify(9)i2c_add_adapter(9)i2c_add_numbered_adapter(9)i2c_del_adapter(9)devm_i2c_add_adapter(9)i2c_find_adapter_by_fwnode(9)i2c_get_adapter_by_fwnode(9)i2c_parse_fw_timings(9)i2c_del_driver(9)__i2c_transfer(9)i2c_transfer(9)i2c_transfer_buffer_flags(9)i2c_get_device_id(9)i2c_client_get_device_id(9)i2c_get_dma_safe_msg_buf(9)i2c_put_dma_safe_msg_buf(9)
that's the page, bestie! π«Ά source: ./drivers/i2c Β· version/date: October 2026 Β· title: devm_i2c_new_dummy_device(9) Β· stay slay π
β¨
π¦ 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