STRUCT IXP4XX_GPIO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ixp4xx_gpio(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” today's main character is struct ixp4xx_gpio, no cap ✨


🌸 NAME 🌸

struct ixp4xx_gpio β€” the IXP4 GPIO state container. that's it, that's the vibe. it holds the state. it contains it. slay πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct ixp4xx_gpio {
    struct gpio_generic_chip chip;
    struct device *dev;
    void __iomem *base;
    unsigned long long irq_edge;
 };

literally just copy that into your brain, it's giving clean struct energy πŸŽ€


πŸŽ€ Members πŸŽ€

  • chip β€” the generic GPIO chip for this instance 🫢 like, this one's the actual chip doing chip things for this particular instance, iykyk.
  • dev β€” the containing device for this instance. it's the device that's holding this whole thing down, main character energy fr fr πŸ‘‘
  • base β€” the remapped I/O-memory base. yes bestie, remapped. I/O memory. base. πŸ’œ
  • irq_edge β€” okay this one's cute: each bit represents an IRQ πŸ”₯ where 1 means edge-triggered and 0 means level triggered. one bit per IRQ, no cap, that's the whole system 🧚
not me being obsessed with a bitfield-adjacent situation 😭 each bit = one IRQ, and the value tells you which trigger type it's on. periodt.

⭐ SEE ALSO ⭐

  • Kernel file ./drivers/gpio/gpio-ixp4xx.c β€” go read it, it's iconic 🌈

and that's the whole page bestie!! πŸ’– this one came from ./drivers/gpio, dated October 2026, and the manual header on it is struct ixp4xx_gpio(9) β€” mwah, bye πŸ“πŸ’‹

πŸ“¦ where this page comes from