STRUCT INV_ICM42600_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to the Kernel API Manual page for struct inv_icm42600_state β€” driver state variables, aka the struct where this driver keeps its whole main-character state πŸ’…βœ¨. This is the entire vibe check, and every member is listed below, no cap.

✨ SYNOPSIS ✨

struct inv_icm42600_state {
    struct mutex lock;
    enum inv_icm42600_chip chip;
    const char *name;
    struct regmap *map;
    struct regulator *vddio_supply;
    int irq;
    struct iio_mount_matrix orientation;
    struct inv_icm42600_conf conf;
    struct inv_icm42600_suspended suspended;
    struct iio_dev *indio_gyro;
    struct iio_dev *indio_accel;
    struct {
      s64 gyro;
      s64 accel;
    } timestamp;
    struct inv_icm42600_apex apex;
    struct inv_icm42600_fifo fifo;
    u8 buffer[3];
};

πŸŽ€ Members πŸŽ€

okay so here’s the member-by-member rundown, and not me listing every single one with love 🫢:

  • lock β€” the lock for serializing multiple registers access, so register access doesn’t get messy πŸ”’.
  • chip β€” chip identifier, iykyk.
  • name β€” chip name.
  • map β€” regmap pointer.
  • vddio_supply β€” I/O voltage regulator for the chip. It’s giving power-supply realness ⚑.
  • irq β€” chip irq, required to enable/disable and set wakeup 🚨.
  • orientation β€” sensor chip orientation relative to main hardware.
  • conf β€” chip sensors configurations.
  • suspended β€” suspended sensors configuration.
  • indio_gyro β€” gyroscope IIO device.
  • indio_accel β€” accelerometer IIO device.
  • timestamp β€” interrupt timestamps; the little struct holds s64 gyro and s64 accel ⏱️.
  • apex β€” APEX (Advanced Pedometer and Event detection) management.
  • fifo β€” FIFO management structure.
  • buffer β€” data transfer buffer aligned for DMA.

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/iio/imu/inv_icm42600/inv_icm42600.h
  • struct inv_icm42600_sensor_state(9)

that’s the whole page, bestie 🫢. Cute sign-off: source/version ./drivers/iio/imu/inv_icm42600, date October 2026, page struct inv_icm42600_state(9) β€” mwah πŸ’‹βœ¨.

πŸ“¦ where this page comes from