i2c_unregister_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ i2c_unregister_device ✨

okay so bestie, welcome to the Kernel API Manual page for i2c_unregister_device β€” yes, the one with the (9) after it, that's the section number, we love a formal queen πŸ’…

🌸 NAME 🌸

i2c_unregister_device β€” literally the reverse effect of i2c_new_*_device(), no cap 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

void i2c_unregister_device (struct i2c_client *client );

it returns void, so like… nothing comes back. she just does the thing and leaves. main character energy honestly πŸ‘‘

πŸŽ€ ARGUMENTS πŸŽ€

  • client β€” the value you got back from i2c_new_*_device. like, the exact same pointer, don't get cute and pass something else πŸ™ˆ

⭐ CONTEXT ⭐

can sleep 😴 β€” yes she can sleep, which means you're allowed to call her from a context where sleeping is legal. she is NOT an atomic-context girlie, so please don't put her in an interrupt handler, i'm begging 😭

πŸ’– SEE ALSO πŸ’–

the whole friend group, fr fr β€” kernel file ./drivers/i2c/i2c-core-base.c and all her besties:


and that's the whole page, mwah πŸ’‹ this came from the source tree at ./drivers/i2c, dated October 2026, and it's filed under i2c_unregister_device(9) β€” ily, go free your clients responsibly πŸ§šβ€β™€οΈπŸŒ·βœ¨

πŸ“¦ where this page comes from