i2c_atr_del_adapter(9)
π 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 range0 .. 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:
enum i2c_atr_flags(9)struct i2c_atr_ops(9)struct i2c_atr_adap_desc(9)i2c_atr_new(9)i2c_atr_delete(9)i2c_atr_add_adapter(9)i2c_atr_set_driver_data(9)i2c_atr_get_driver_data(9)
like, the whole squad is here. iykyk π
lowkey a reminder thati2c_atr_del_adapter()pairs withi2c_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
- 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