STRUCT PCA9570(9)
β¨ 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, aconst struct pca9570_chip_data *no less β¨lockβ astruct mutexthat protects write sequences, so like, please respect the lock, it's literally there for a reason ππoutβ au8buffer 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
- 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