STRUCT INV_ICM42607_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct inv_icm42607_state β€” NAME πŸŽ€

okay so bestie, welcome to the Kernel API Manual ✨ β€” this page is literally all about struct inv_icm42607_state, aka the driver state variables πŸ‘‘. that's it. that's the whole name section. she's the big ol' bag of everything the inv_icm42607 driver needs to keep track of. no cap. 🫢


🌸 SYNOPSIS 🌸

here's the struct in all her main-character glory, copy-pasted exactly so you don't get jumped by a compiler later:

struct inv_icm42607_state {
    const struct inv_icm42607_hw *hw;
    struct mutex lock;
    struct regmap *map;
    struct iio_dev *indio_accel;
    struct iio_dev *indio_gyro;
    struct regulator *vddio_supply;
    bool vddio_en;
    struct inv_icm42607_conf conf;
    struct iio_mount_matrix orientation;
 };

✨ Members ✨

bestie these are the fields, and yes we're going through every single one πŸ’–:

  • hw β€” hardware specific data. that's her lore. the chip-specific deets live here 🧚
  • lock β€” a struct mutex that serializes multiple register accesses. like a bouncer for your registers so nobody's shoving past anybody πŸ’…
  • map β€” the regmap pointer. iconic. πŸ”₯
  • indio_accel β€” the accelerometer IIO device ⭐
  • indio_gyro β€” the gyroscope IIO device. she spins, she's giving main character energy 🌈
  • vddio_supply β€” the I/O voltage regulator for the chip πŸ“
  • vddio_en β€” I/O voltage status for runtime PM πŸ‘€
  • conf β€” the chip sensors configurations πŸŽ€
  • orientation β€” the sensor chip orientation relative to the main hardware. she knows where she is in space, unlike me 😭

πŸ¦‹ SEE ALSO πŸ¦‹

  • the Kernel file ./drivers/iio/imu/inv_icm42607/inv_icm42607.h πŸ“
  • struct inv_icm42607_sensor_state(9) β€” her sibling, go say hi πŸ’œ

ok that's the whole page fr fr. go forth and read registers (safely, with the mutex, iykyk) πŸ™ˆ

mwah πŸ’‹ this page came to you from ./drivers/iio/imu/inv_icm42607, dated October 2026 β€” struct inv_icm42607_state(9), slayed and out πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from