STRUCT PCA9570(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so welcome to the Kernel API Manual, bestie, and today's main character is struct pca9570 β€” literally just the GPIO driver data πŸ’… that's it, that's the whole vibe


πŸ¦‹ SYNOPSIS πŸ¦‹

like, here's the whole thing, no gatekeeping:

struct pca9570 {
    struct gpio_chip chip;
    const struct pca9570_chip_data *chip_data;
    struct mutex lock;
    u8 out;
};

🌸 Members 🌸

now let's meet the cast, iykyk πŸ‘‘

  • chip β€” the GPIO controller chip itself, the actual star of the show, main character energy fr fr πŸŽ€
  • chip_data β€” the GPIO controller platform data, lowkey the chip's whole backstory, a const struct pca9570_chip_data * no less ✨
  • lock β€” a struct mutex that protects write sequences, so like, please respect the lock, it's literally there for a reason πŸ˜­πŸ”’
  • out β€” a u8 buffer for the device register, tiny but iconic, holding it down 🫢

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/gpio/gpio-pca9570.c
  • struct pca9570_chip_data(9)

ngl, that's genuinely all of it β€” no cap, every member, every type, every word. go off πŸ’–

this little group-chat moment was brought to you by ./drivers/gpio, dropped October 2026, starring struct pca9570(9) slay πŸ§šβ­πŸ’€

πŸ“¦ where this page comes from