i2c_atr_set_driver_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 a void *, 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:

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