STRUCT AFE4404_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🫢 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 to regmap, and it's an array of struct regmap_field * sized F_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 β€” the ADC_RDY line 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 a s32 array 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