regmap_add_irq_chip(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ regmap_add_irq_chip(9) ✨

okay so bestie, welcome to the Kernel API Manual entry for regmap_add_irq_chip β€” literally the function that gives you standard regmap IRQ controller handling πŸŽ€ like it just handles it for you, no cap.


🌸 SYNOPSIS 🌸

int regmap_add_irq_chip (struct regmap *map , int irq , int irq_flags ,
       int irq_base , const struct regmap_irq_chip *chip , struct
       regmap_irq_chip_data **data );

it's giving six-argument main character energy πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • map β€” the regmap for the device, aka the whole vibe of what you're working with 🫢
  • irq β€” the IRQ that the device uses to signal interrupts, like its little "hey!! something happened!!" ping 😭
  • irq_flags β€” the IRQF_ flags you wanna use for the primary interrupt ⭐
  • irq_base β€” allocate at a specific IRQ number only if irq_base > 0, iykyk 🌈
  • chip β€” the configuration for the interrupt controller πŸ‘‘
  • data β€” runtime data structure for the controller, and it gets allocated on success β€” so yes, you get a little gift on the way out 🎁

πŸ’œ DESCRIPTION πŸ’œ

Returns 0 on success or an errno on failure. periodt. πŸ”₯

This is the same as regmap_add_irq_chip_fwnode, except that the firmware node of the regmap is used. like, the only difference fr fr β€” everything else ate πŸ’…

heads up bestie: check that return value!! 0 means slay, an errno means not slay πŸ™ˆ

🌟 SEE ALSO 🌟


and that's the whole page bestie!! this one lives at ./drivers/base/regmap, dated October 2026, and it's filed under regmap_add_irq_chip(9) β€” go forth and register those IRQ chips, you absolute legend πŸ§šπŸ’œβœ¨

πŸ“¦ where this page comes from