STRUCT INV_ICM45600_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct inv_icm45600_state β€” the driver state variables, aka the whole vibe of this driver in one struct ✨

bestie this is from the Kernel API Manual (section 9) and it's literally the main character struct of the inv_icm45600 driver β€” everything the driver needs to remember lives in here 🫢


✨ SYNOPSIS ✨

okay so here's the whole struct, no cap, every field exactly as it is:

struct inv_icm45600_state {
    struct mutex lock;
    struct regmap *map;
    struct regulator *vddio_supply;
    struct iio_mount_matrix orientation;
    struct inv_icm45600_conf conf;
    struct inv_icm45600_suspended suspended;
    struct iio_dev *indio_gyro;
    struct iio_dev *indio_accel;
    const struct inv_icm45600_chip_info *chip_info;
    struct {
      s64 gyro;
      s64 accel;
    } timestamp;
    struct inv_icm45600_fifo fifo;
    union {
      u8 buff[2];
      __le16 u16;
      u8 ireg[3];
    } buffer;
 };

like, look at her. iconic. πŸ‘‘


πŸŽ€ Members πŸŽ€

here's the tea on every single field, let me walk you through it πŸ’…

  • lock β€” the lock that serializes multiple registers access. one at a time please, we're not animals πŸ™ˆ
  • map β€” the regmap pointer. your map to the registers, iykyk πŸ—ΊοΈ
  • vddio_supply β€” the I/O voltage regulator for the chip. gotta keep her fed ⚑
  • orientation β€” the sensor chip orientation relative to main hardware. which way is up fr fr 🧭
  • conf β€” chip sensors configurations ✨
  • suspended β€” the suspended sensors configuration 😴
  • indio_gyro β€” the gyroscope IIO device πŸŒͺ️
  • indio_accel β€” the accelerometer IIO device πŸƒβ€β™€οΈ
  • chip_info β€” chip driver data. the lore πŸ“–
  • timestamp β€” interrupt timestamps ⏰
  • fifo β€” the FIFO management structure πŸ“
  • buffer β€” the data transfer buffer, aligned for DMA. aligned, because we have standards πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/iio/imu/inv_icm45600/inv_icm45600.h
  • struct inv_icm45600_sensor_state(9) β€” her sister struct, go say hi 🌸

ok that's the whole page bestie, every field accounted for, nothing skipped, we ate and left no crumbs 🍽️✨

mwah πŸ’‹ this page came from ./drivers/iio/imu/inv_icm45600, dated October 2026, and it's struct inv_icm45600_state(9) β€” stay slaying, kernel girlies πŸ‘‘πŸ’–

πŸ“¦ where this page comes from