i2c_atr_del_adapter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i2c_atr_del_adapter(9) β€” the Kernel API Manual moment ✨

okay so bestie, we're in the Kernel API Manual today and this page is literally about removing a downstream I2C bus. it's giving cleanup era. let's go πŸŽ€


🌸 NAME 🌸

i2c_atr_del_adapter β€” removes a child ("downstream") I2C bus that was added by i2c_atr_add_adapter(). and like, no cap: if no I2C bus has been added, this function is a no-op. it literally does nothing. iconique behavior, tbh πŸ¦‹


✨ SYNOPSIS ✨

void i2c_atr_del_adapter (struct i2c_atr *atr , u32 chan_id );

that's it. that's the whole vibe check. πŸ’–


🫢 ARGUMENTS 🫢

  • atr β€” the I2C ATR itself, your main character πŸŽ€
  • chan_id β€” the index of the adapter you want removed, and it lives in the range 0 .. max_adapters-1 (yes, off-by-one is real, respect the bounds bestie πŸ’€)

πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./include/linux/i2c-atr.h is where it all lives, and it's bringing the whole friend group:

like, the whole squad is here. iykyk 🌈


lowkey a reminder that i2c_atr_del_adapter() pairs with i2c_atr_add_adapter() β€” one adds, one removes. balance. harmony. the circle of kernel life 🧚

okay that's the page!! sending u off with love from ./include/linux, dated October 2026, signed i2c_atr_del_adapter(9) β€” periodt, slay, go free your downstream bus πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from