gpiochip_irq_map(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌈 gpiochip_irq_map(9) 🌈

okay so bestie, welcome to the gpiochip_irq_map(9) page in the Kernel API Manual. This is the lowkey mapping function that gets an IRQ line settled into a GPIO irqchip, and we are keeping every detail, no cap. πŸ’–

✨ NAME ✨

gpiochip_irq_map β€” maps an IRQ into a GPIO irqchip. Periodt. πŸŽ€

🌟 SYNOPSIS 🌟

int gpiochip_irq_map (struct irq_domain *d , unsigned int irq ,
       irq_hw_number_t hwirq );

πŸŽ€ ARGUMENTS πŸŽ€

  • d β€” the irqdomain used by this irqchip. That’s the domain, bestie. πŸ¦‹
  • irq β€” the global irq number used by this GPIO irqchip irq. Global number, okay? πŸ’…
  • hwirq β€” the local IRQ/GPIO line offset on this gpiochip. Local line offset, iykyk. ✨

πŸ’… DESCRIPTION πŸ’…

The way this works: this function will set up the mapping for a certain IRQ line on a gpiochip by assigning the gpiochip as chip data, and using the irqchip stored inside the gpiochip. That’s the whole vibe. πŸ”₯

πŸ”₯ RETURN πŸ”₯

0 on success, or negative errno on failure. That’s it, no cap. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Also peep the kernel file ./drivers/gpio/gpiolib.c, plus all these function pages, bestie:


cute little sign-off: source/version ./drivers/gpio, dated October 2026, and yes this is still gpiochip_irq_map(9) β€” mwah πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from