STRUCT KXSD9_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct kxsd9_state(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” this page is all about struct kxsd9_state, and it's literally the device related storage. no cap, it's giving "tiny struct, big main character energy" ✨


🌸 NAME 🌸

struct kxsd9_state β€” device related storage. that's the whole vibe: it's the struct for the device related storage. πŸŽ€

✨ SYNOPSIS ✨

here's the shape of it, exactly:

struct kxsd9_state {
    struct device *dev;
    struct regmap *map;
    struct iio_mount_matrix orientation;
    struct regulator_bulk_data regs[2];
    u8 scale;
 };

🫢 Members 🫢

okay bestie, member by member, and yes we're keeping every single one:

  • dev β€” pointer to the parent device. the parent-device pointer, periodt.
  • map β€” regmap to the device. it's the regmap hookup, iykyk.
  • orientation β€” mounting matrix, flipped axis etc. flipped-axis realness included.
  • regs β€” regulators for this device, VDD and IOVDD. both VDD and IOVDD, no skips.
  • scale β€” the current scaling setting. the current scaling setting, slay.

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/iio/accel/kxsd9.c β€” go peek at the source, bestie.

mwah πŸ’‹ β€” footer sign-off, source/version: ./drivers/iio/accel, date: October 2026, page: struct kxsd9_state(9). periodt.

πŸ“¦ where this page comes from