STRUCT SI1145_DATA(9)
πΈ NAME πΈ
struct si1145_data β si1145 chip state data π
okay so bestie, welcome to the struct si1145_data(9) page from the Kernel API Manual. this is literally the state-data situation for the si1145 chip, and it's giving "tiny struct, big responsibilities." no cap β¨
β¨ SYNOPSIS β¨
struct si1145_data {
struct i2c_client *client;
struct mutex lock;
struct mutex cmdlock;
int rsp_seq;
const struct si1145_part_info *part_info;
unsigned long scan_mask;
bool autonomous;
struct iio_trigger *trig;
int meas_rate;
u8 buffer[24];
};
π«Ά Members π«Ά
clientβ I2C client. the whole reason we're here, honestly π¦lockβ mutex to protect shared state. guard the communal vibes πcmdlockβ Low-level mutex to protect command execution only. it's giving "small but mighty" energy πrsp_seqβ Next expected response number or-1if counter reset required. track the response era, iykyk πpart_infoβ Part information. the lore πΈscan_maskβ Saved scan mask to avoid duplicateset_chlist. no duplicate drama, periodt β¨autonomousβ If automatic measurements are active (for buffer support). main character energy when true πtrigβ Pointer to iio trigger. the trigger bestie πmeas_rateβ Value ofMEAS_RATEregister. Only set in HW in auto mode. lowkey auto-mode-only behavior π«Άbufferβ Used to pack data read from sensor.u8 buffer[24], the packing icon π
π₯ SEE ALSO π₯
Kernel file ./drivers/iio/light/si1145.c β go check the source, bestie, it's iconic π
mwah π this little glow-up comes from ./drivers/iio/light, dated October 2026, and it's serving struct si1145_data(9) realness. periodt π§π
π¦ 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