STRUCT ALTERA_GPIO_CHIP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct altera_gpio_chip(9)

okay so bestie, welcome to the Kernel API Manual ✨ β€” today's main character is struct altera_gpio_chip, and honestly? she's giving very specific niche hardware energy and we're obsessed πŸŽ€


🌸 NAME 🌸

struct altera_gpio_chip β€” no cap, that's the whole name, it just is πŸ’… (the og page keeps the description blank, so we're keeping it blank too, periodt)


✨ SYNOPSIS ✨

struct altera_gpio_chip {
    struct gpio_generic_chip chip;
    void __iomem *regs;
    raw_spinlock_t gpio_lock;
    int interrupt_trigger;
 };

like, look at her. four fields. no notes. πŸ”₯


πŸ¦‹ Members πŸ¦‹

  • chip β€” the generic GPIO chip structure, aka her generic GPIO chip core. every icon needs a foundation bestie 🫢
  • regs β€” the memory mapped IO address for the controller registers. literally where the controller keeps its stuff, mmkay πŸ’–
  • gpio_lock β€” a synchronization lock πŸ”’ so that new irq/set/get requests get blocked until the current one finishes. no cutting in line, she runs a very orderly queue ngl 😭
  • interrupt_trigger β€” tells you the hardware configured IRQ trigger type: rising, falling, both, or high 🌈 (four vibes, pick one, iykyk)

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/gpio/gpio-altera.c β€” go read the source, it's right there, you got this 🧚

fr fr, every field, every trigger type, all of it is here β€” nothing skipped, nothing invented, we keep the facts and serve the vibe πŸ’œ

and that's the page!! πŸ“ sourced from ./drivers/gpio, dated October 2026 β€” slay, ate, no crumbs, see you in the next manpage bestie πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from