i2c_del_adapter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 through i2c_add_adapter or i2c_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:

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