STRUCT TNG_GPIO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 the struct 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