gpiochip_fwd_gpio_to_irq(9)
β¨ 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 π«Ά:
gpiochip_fwd_get_gpiochip(9)gpiochip_fwd_get_data(9)gpiochip_fwd_gpio_request(9)gpiochip_fwd_gpio_get_direction(9)gpiochip_fwd_gpio_direction_output(9)gpiochip_fwd_gpio_direction_input(9)gpiochip_fwd_gpio_get(9)gpiochip_fwd_gpio_get_multiple(9)gpiochip_fwd_gpio_set(9)gpiochip_fwd_gpio_set_multiple(9)gpiochip_fwd_gpio_set_config(9)devm_gpiochip_fwd_alloc(9)gpiochip_fwd_desc_add(9)gpiochip_fwd_desc_free(9)gpiochip_fwd_register(9)gpiochip_fwd_create(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms