STRUCT TNG_GPIO(9)
β¨ NAME β¨
okay so bestie, welcome to the tng_gpio(9) page from the Kernel API Manual π. This whole page is about struct tng_gpio β Platform specific private data. That's the vibe, periodt.
πΈ SYNOPSIS πΈ
Here's the struct in all its main-character glory β¨:
struct tng_gpio {
struct gpio_chip chip;
void __iomem *reg_base;
int irq;
raw_spinlock_t lock;
struct device *dev;
struct tng_gpio_context *ctx;
struct tng_wake_regs wake_regs;
struct tng_gpio_pin_info pin_info;
struct tng_gpio_info info;
};
π Members π
chipβ an instance of thestruct gpio_chipπ, iconic.reg_baseβ base address of MMIO registers π .irqβ the interrupt for the GPIO device β‘.lockβ synchronization lock to prevent I/O race conditions π, no chaos allowed.devβ the GPIO device π«Ά.ctxβ context to be saved during suspend-resume π΄.wake_regsβ platform specific wake registers π.pin_infoβ platform specific pinout information π.infoβ platform specific GPIO and IRQ information β¨.
π SEE ALSO π
Kernel file ./drivers/gpio/gpio-tangier.h struct tng_wake_regs(9), struct tng_gpio_pinrange(9), struct tng_gpio_pin_info(9), struct tng_gpio_info(9) β go read those too, iykyk π¦.
source/version: ./drivers/gpio β’ date: October 2026. mwah, bestie ππ
π¦ 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