STRUCT AFE4404_DATA(9)
π«Ά struct afe4404_data(9) β Kernel API Manual, bestie edition πΈ
okay so like, this is a page straight out of the Kernel API Manual, and it's all about one little struct that holds literally everything a driver needs to remember about an AFE4404 chip. think of it as the device's ~emotional support~ data blob β¨
β¨ NAME β¨
struct afe4404_data β the AFE4404 device instance data. that's it, that's the whole vibe. it's the struct where one specific AFE4404 lives its best life π
π SYNOPSIS π
no cap, here's the whole shape of it, character for character:
struct afe4404_data {
struct regmap *regmap;
struct regmap_field *fields[F_MAX_FIELDS];
struct regulator *regulator;
struct iio_trigger *trig;
int irq;
s32 buffer[10];
};
she's compact, she's iconic, she has six members and honestly? she ate π
π Members π
let's go through every single one, no skipping, we don't do that here π«Ά
regmapβ the register map of the device. this is the whole map, the big picture, the GPS of the chip's registers fr fr.fieldsβ the register fields of the device. lowkey the more granular bestie toregmap, and it's an array ofstruct regmap_field *sizedF_MAX_FIELDS. iykyk.regulatorβ a pointer to the regulator for the IC. somebody's gotta keep the power situation cute and stable β‘.trigβ the IIO trigger for this device. it's the thing that goes "hey, now!" at the right moments π«.irqβ theADC_RDYline interrupt number. literally the number the kernel calls when the ADC says "i'm ready, bestie" π¦.bufferβ used to construct a scan to push to the iio buffer. it's as32array of 10 slots, and yes, it's doing exactly what it says on the tin π.
okay real talk: this struct is just data storage. it's not doing the work itself, it's holding the handles so the driver can do the work. don't expect it to fix your bugs π
π SEE ALSO π
- Kernel file
./drivers/iio/health/afe4404.cβ the actual code, go read it, she's right there π§
aaaand that's the page!! slay π this little beauty comes to you from ./drivers/iio/health, dated October 2026, and it's the struct afe4404_data(9) page living its truth in the Kernel API Manual. main character energy from start to finish, 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