devm_i2c_new_dummy_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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