gpiochip_fwd_gpio_to_irq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ gpiochip_fwd_gpio_to_irq(9) ✨

okay so real talk, this is a page straight out of the Kernel API Manual, bestie β€” gpiochip_fwd_gpio_to_irq(9), live from ./drivers/gpio, and we're about to make it make sense πŸ’–


🌸 NAME 🌸

gpiochip_fwd_gpio_to_irq β€” no cap, it returns the IRQ corresponding to a GPIO forwarder line πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

int gpiochip_fwd_gpio_to_irq (struct gpiochip_fwd *fwd , unsigned int
offset );

like, that's the whole signature. short and iconic, honestly πŸ‘‘

πŸ’… ARGUMENTS πŸ’…

  • fwd β€” the GPIO forwarder itself. main character energy, this is the thing we're working with ✨
  • offset β€” the offset of the line. yes, that offset, the one you want the IRQ for 🧚

πŸ”₯ RETURN πŸ”₯

It gives you back the Linux IRQ corresponding to the passed line β€” slay πŸ’œ β€” or an error code in case of error 😭 (fr fr, check it, don't just assume it worked).

ngl, "error code in case of error" is the most ominous sentence in kernel land but that's the deal πŸ™ˆ handle it.

🌈 SEE ALSO 🌈

The kernel file, bestie, right here:

  • ./drivers/gpio/gpio-aggregator.c

and the whole friend group 🫢:


and that's the vibe check βœ… this page lives in ./drivers/gpio, stamped October 2026, and it's titled gpiochip_fwd_gpio_to_irq(9) in the Kernel API Manual β€” go forth and slay your IRQs, bestie πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from