STRUCT PCH_GPIO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the struct pch_gpio(9) page in the Kernel API Manual β€” we're decoding the private data structure for GPIO, and it's giving backstage-pass energy ✨. every field is here, no skips, fr fr.

πŸ’– NAME πŸ’–

struct pch_gpio β€” GPIO private data structure. that's the name, and yes, it's quietly iconic πŸ‘‘

✨ SYNOPSIS ✨

       struct pch_gpio {
           void __iomem *base;
           struct pch_regs __iomem *reg;
           struct device *dev;
           struct gpio_chip gpio;
           struct pch_gpio_reg_data pch_gpio_reg;
           int irq_base;
           enum pch_type_t ioh;
           raw_spinlock_t spinlock;
        };

πŸŽ€ Members πŸŽ€

  • base β€” PCI base address of Memory mapped I/O register. literally the base address for that memory-mapped I/O register, periodt πŸ’…
  • reg β€” memory-mapped PCH GPIO register list. the lineup of PCH GPIO registers, mapped into memory, slay πŸ’–
  • dev β€” pointer to device structure. just a pointer to the device structure, keeping it connected 🫢
  • gpio β€” data for GPIO infrastructure. the data for GPIO infrastructure β€” main-character payload, no cap ✨
  • pch_gpio_reg β€” memory-mapped Register data is saved here when suspend. when suspend happens, the memory-mapped register data gets stashed here 😴
  • irq_base β€” saves base of IRQ number for interrupt. it saves the base of the IRQ number for interrupt, iykyk πŸ”₯
  • ioh β€” IOH ID. that's the IOH ID β€” short, mysterious, iconic 🌈
  • spinlock β€” used for register access protection. the spinlock for register access protection, keeping things protected πŸ’œ

πŸ‘€ SEE ALSO πŸ‘€

  • Kernel file ./drivers/gpio/gpio-pch.c β€” go peek at the source, bestie, it's right there πŸ“–
  • struct pch_gpio_reg_data(9) β€” the related register-data struct page, linked for your reading pleasure ✨

and that's the whole struct vibe 🫢 β€” this page's source/version is ./drivers/gpio, dated October 2026. byeee πŸ’–

πŸ“¦ where this page comes from