STRUCT AS73211_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hey bestie πŸ’– welcome to the struct as73211_data(9) page from the Kernel API Manual. lowkey iconic that you're here, and yes, we're gonna keep every single detail. no cap. ✨

🌸 NAME 🌸

struct as73211_data β€” Instance data for one AS73211. literally the little data home for one AS73211, periodt. πŸ’…


✨ SYNOPSIS ✨

okay so here's the whole struct, bestie β€” copied exactly, no edits, because we do not mess with code:

struct as73211_data {
    struct i2c_client *client;
    u8 osr;
    u8 creg1;
    u8 creg2;
    u8 creg3;
    struct mutex mutex;
    struct completion completion;
    int int_time_avail[AS73211_SAMPLE_TIME_NUM * 2];
    const struct as73211_spec_dev_data *spec_dev;
};

🫢 Members 🫢

  • client β€” I2C client. that's the connection buddy, the whole i2c_client situation. πŸ’–
  • osr β€” Cached Operational State Register. yep, it's the cached Operational State Register, slay. ✨
  • creg1 β€” Cached Configuration Register 1. the first cached config register, keeping it cozy. πŸŽ€
  • creg2 β€” Cached Configuration Register 2. second config register, also cached, also iconic. πŸ¦‹
  • creg3 β€” Cached Configuration Register 3. third one, and yes bestie, it's cached too. 🌸
  • mutex β€” Keeps cached registers in sync with the device. so it's the thing making sure those cached registers stay in sync with the actual device. πŸ’…
  • completion β€” Completion to wait for interrupt. the completion you wait on for an interrupt β€” that's its whole job. 🫢
  • int_time_avail β€” Available integration times (depend on sampling frequency). so these are the available integration times, and yes, they depend on sampling frequency. 😭
  • spec_dev β€” device-specific configuration. the device-specific configuration pointer, highkey important. πŸ”₯

πŸ’– SEE ALSO πŸ’–

  • Kernel file ./drivers/iio/light/as73211.c β€” go peek, bestie. πŸ‘‘
  • struct as73211_spec_dev_data(9) β€” also see this one, iykyk. 🌈

mwah πŸ’– β€” this cute little page comes from the ./drivers/iio/light source/version, dated October 2026, and it's all about struct as73211_data(9). bye bestie, go slay your kernel adventures! πŸŽ€

πŸ“¦ where this page comes from