i2c_atr_set_driver_data(9)
π i2c_atr_set_driver_data(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a lil function called i2c_atr_set_driver_data, and honestly? She's short, she's sweet, she's giving "one job and she does it." Let's get into it π
β¨ NAME β¨
i2c_atr_set_driver_data β stashes your private driver data onto the i2c-atr instance, no cap. That's the whole vibe. π
πΈ SYNOPSIS πΈ
void i2c_atr_set_driver_data (struct i2c_atr *atr , void *data );
Look at her. Two args, returns nothing, zero drama. π¦
π ARGUMENTS π
atrβ The I2C ATR. Yep. That's the one you're attaching stuff to, bestie.dataβ Pointer to the data to store. It's avoid *, so it could literally be anything β that's between you and your allocation strategy, iykyk π«Ά
π¦ SEE ALSO π¦
Kernel file ./include/linux/i2c-atr.h β plus 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_del_adapter(9)i2c_atr_get_driver_data(9)
like, the getter's right there babe, they come as a set π
ngl this page is short but she ate. set your data, go get it back later with i2c_atr_get_driver_data(9), main character energy the whole way through β
and that's the tea π brought to you from ./include/linux, dated October 2026 β mwah, catch you in the next manpage, bestie ππ
π¦ 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