i2c_atr_delete(9)
π i2c_atr_delete(9) β from the Kernel API Manual, bestie
okay so picture this: you're deep in the kernel, you've got an I2C ATR helper living its best life, and now it's time to send it off gracefully. That's literally this page. Welcome to i2c_atr_delete, bestie β it's giving "cleanup era" and honestly? Iconic. π
β¨ NAME β¨
i2c_atr_delete β delete an I2C ATR helper. That's it. That's the whole job. She's a one-task queen and she ate. π
πΈ SYNOPSIS πΈ
void i2c_atr_delete (struct i2c_atr *atr );
Returns nothing (void) β no cap, no return value, she just does the thing and dips. π¨
π¦ ARGUMENTS π¦
atrβ the I2C ATR helper that's getting deleted. Yep, this is the main character of the whole function. Say bye π«Ά
π DESCRIPTION π
So here's the vibe check, and this part is serious, bestie β it's a precondition, not a suggestion:
all the adapters you added withi2c_atr_add_adaptermust be removed first by callingi2c_atr_del_adapter.
Like, all of them. Every single one. You cannot skip this step, you cannot "do it later", you cannot hope the kernel won't notice π Clean up your adapters with i2c_atr_del_adapter before you call i2c_atr_delete, or the vibe is ruined. Consider this your bestie intervention. β¨
π§ SEE ALSO π§
Kernel file ./include/linux/i2c-atr.h, plus the whole squad:
enum i2c_atr_flags(9)struct i2c_atr_ops(9)struct i2c_atr_adap_desc(9)i2c_atr_new(9)i2c_atr_add_adapter(9)i2c_atr_del_adapter(9)i2c_atr_set_driver_data(9)i2c_atr_get_driver_data(9)
Go read them, iykyk ππ
aaaand that's the page!! this little gem lives in ./include/linux and the date on it is October 2026 β so yeah, she's from the future, main character energy fr fr. mwah, go delete responsibly π
πβ
π¦ 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