i2c_del_adapter(9)
π i2c_del_adapter(9) β Kernel API Manual β¨
okay so bestie, welcome to the glow-up edition of the i2c_del_adapter(9) page from the Kernel API Manual. yes we're doing kernel docs now, and honestly? we're slaying it. π
πΈ NAME πΈ
i2c_del_adapter β unregister I2C adapter, aka the "it's not you it's me" moment for your I2C adapter πβ¨
π¦ SYNOPSIS π¦
void i2c_del_adapter (struct i2c_adapter *adap );
literally that's it. one function, one argument, zero drama (well, mostly). π«Ά
π ARGUMENTS π
adapβ the adapter being unregistered. yeah that's your main character right there, the one getting retired π
β CONTEXT β
can sleep π΄π€ β no cap, this one is allowed to nap, so don't go calling it from somewhere that forbids sleeping, iykyk.
π₯ DESCRIPTION π₯
so what does it actually do? it unregisters an I2C adapter that was previously registered by i2c_add_adapter or i2c_add_numbered_adapter. that's the whole vibe check. you put the adapter in, now you're taking it back out β the way that reverse-uno card is just iconic ππ
fair warning bestie, only unregister adapters that were actually registered throughi2c_add_adapterori2c_add_numbered_adapterβ that's the pair-up, don't be out here breaking the matching set π
π SEE ALSO π
kernel file ./drivers/i2c/i2c-core-base.c and its absolutely stacked friend group, fr fr:
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)devm_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)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)
like, that's a whole squad π literally every single one, we did not skip a single bestie, periodt.
β¨ that's the whole page babes β¨ this lil drop came from ./drivers/i2c and it's stamped October 2026 ποΈπ go forth and unregister responsibly, mwah π§πΈ
π¦ 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