gpiochip_irqchip_add_domain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… gpiochip_irqchip_add_domain(9) β€” the kernel API manual, but make it make sense

okay bestie, so you found yourself in section 9 of the kernel API manual, which is where all the real driver-kid lore lives. buckle up, this one's short but iconic ✨


🌸 NAME 🌸

gpiochip_irqchip_add_domain β€” adds an irqdomain to a gpiochip

like... it literally does what it says on the tin, and honestly? we love a transparent function 🫢


πŸŽ€ SYNOPSIS πŸŽ€

int gpiochip_irqchip_add_domain (struct gpio_chip *gc , struct
       irq_domain *domain );

it returns an int, it takes two pointers, and it's not here to play games πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gc β€” the gpiochip that's getting the irqchip. this is the main character of the operation πŸ‘‘
  • domain β€” the irqdomain you're adding to that gpiochip. your plus-one, your ride-or-die πŸ’–

⭐ DESCRIPTION ⭐

so this function adds an IRQ domain to the gpiochip. that's it. that's the whole description. no cap, the manpage really is that brief 😭

but like, lowkey that's the beauty of it β€” one job, done well, no unnecessary side quests 🧚


πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” slay, we ate, periodt βœ…
  • negative errno on failure β€” not slay, something went wrong, check your errno and go touch some grass πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

and now, the moment you've all been waiting for: the entire extended friend group of gpiolib functions. fr fr, this is the group chat 🌈

the kernel file ./drivers/gpio/gpiolib.c is the source of all this wisdom, and here's every single one of its besties:

like, that's the whole roster. every single one. iykyk 😌


and that's the page, bestie! πŸŽ€ it came to you from <pink>./drivers/gpio</pink> in <purple>October 2026` β€” go forth and register those irq domains, you absolute icon πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from