STRUCT AFE4403_DATA(9)
π struct afe4403_data(9) π
ok so this is a page from the Kernel API Manual β yes, we're literally in kernel internals rn, bestie, stay with me π«Ά
β¨ NAME β¨
struct afe4403_data β the device instance data for the AFE4403. like, the little bag of stuff the driver keeps around for each AFE4403 chip it's babysitting π
π SYNOPSIS π
struct afe4403_data {
struct spi_device *spi;
struct regmap *regmap;
struct regmap_field *fields[F_MAX_FIELDS];
struct regulator *regulator;
struct iio_trigger *trig;
int irq;
s32 buffer[8];
};
πΈ Members πΈ
okay pulling these apart one by one, no skipping, we're doing the whole fit check π
spiβ the SPI device handle. this is how we even talk to the chip, iconic of itregmapβ the register map of the device. all the registers, nicely organized β¨fieldsβ the register fields of the device. it's an array ofstruct regmap_field *withF_MAX_FIELDSslots, so like,F_MAX_FIELDSof them, fr frregulatorβ pointer to the regulator for the IC. the power people πtrigβ the IIO trigger for this device. the thing that says "hey, go" πirqβ theADC_RDYline interrupt number. that's the interrupt that fires when the ADC is ready, lowkey importantbufferβ it's ans32array of 8, and it's used to construct the data layout to push into the IIO buffer. little staging area, main character energy honestly
π¦ SEE ALSO π¦
Kernel file ./drivers/iio/health/afe4403.c β go read the source, it's giving β¨ go look at it
ngl this one's short but it's mighty, don't sleep on it π
ok that's the whole page bestie, we ate and left no crumbs π this came from ./drivers/iio/health, dated October 2026, in the Kernel API Manual β mwah, periodt ππ§
π¦ 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