STRUCT AS73211_DATA(9)
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 wholei2c_clientsituation. π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
- 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