STRUCT AD5360_STATE(9)
π 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β thespi_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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms