STRUCT AD5360_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay so this page comes from the Kernel API Manual, and the main character is struct ad5360_state β€” that’s the driver instance specific data, no cap. It’s the struct that holds one driver instance’s specific data, and we’re gonna vibe-check every member. Periodt. 🫢

✨ SYNOPSIS ✨

struct ad5360_state {
    struct spi_device               *spi;
    const struct ad5360_chip_info   *chip_info;
    struct regulator_bulk_data      vref_reg[3];
    unsigned int                    ctrl;
    struct mutex                    lock;
    union {
      __be32 d32;
      u8 d8[4];
    } data[2];
};

🌸 Members 🌸

  • spi β€” the spi_device, bestie. That’s the SPI device member, exactly as the struct says.
  • chip_info β€” chip model specific constants, available modes etc. All that model-specific lore lives here, iykyk.
  • vref_reg β€” vref supply regulators. Yep, the vref supply regulators, iconic.
  • ctrl β€” control register cache. It’s giving β€œcache the control register,” periodt.
  • lock β€” lock to protect the data buffer during SPI ops. Do not sleep on this one: its whole job is protecting the data buffer during SPI ops.
  • data β€” spi transfer buffers. The SPI transfer buffers, fr fr.

πŸ‘€ SEE ALSO πŸ‘€

  • Kernel file ./drivers/iio/dac/ad5360.c
  • struct ad5360_chip_info(9)

Go read those if you want the full lore, bestie. πŸ’…

Cute sign-off: source/version ./drivers/iio/dac, dated October 2026, page struct ad5360_state(9) β€” bye bestie, slay! βœ¨πŸ’–

πŸ“¦ where this page comes from