gpiod_to_irq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ gpiod_to_irq(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… this one's a lil function from the kernel's GPIO corner of the world, and honestly it's giving "short but powerful."


🌸 NAME 🌸

gpiod_to_irq β€” return the IRQ corresponding to a GPIO πŸŽ€


⭐ SYNOPSIS ⭐

int gpiod_to_irq (const struct gpio_desc *desc );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • desc β€” the gpio whose IRQ will be returned (already requested). like, it has to be already requested, no cap β€” that's part of the deal ✨

πŸ”₯ RETURN πŸ”₯

The IRQ corresponding to the passed GPIO, or an error code in case of error. that's it, that's the whole vibe β€” you get your IRQ, or you get an error code, no in-between πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./drivers/gpio/gpiolib.c, plus literally the entire GPIO extended family β€” yes, all of them, i'm not skipping a single one 🫢


that's the whole page bestie, short and sweet, main character energy in like four lines πŸ˜­πŸ¦‹

source dir ./drivers/gpio Β· dated October 2026 Β· page gpiod_to_irq(9) β€” mwah, go read the whole GPIO family, ily, bye πŸ’œπŸŽ€

πŸ“¦ where this page comes from