STRUCT SI1145_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 -1 if counter reset required. track the response era, iykyk πŸ‘‘
  • part_info β€” Part information. the lore 🌸
  • scan_mask β€” Saved scan mask to avoid duplicate set_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 of MEAS_RATE register. 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