regmap_add_irq_chip(9)
β¨ 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β theIRQF_flags you wanna use for the primary interrupt βirq_baseβ allocate at a specific IRQ number only ifirq_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!!0means slay, anerrnomeans not slay π
π SEE ALSO π
- Kernel file
./drivers/base/regmap/regmap-irq.cβ go read the source, it's iconic π regmap_irq_get_irq_reg_linear(9)regmap_irq_set_type_config_simple(9)regmap_add_irq_chip_fwnode(9)regmap_del_irq_chip(9)devm_regmap_add_irq_chip_fwnode(9)devm_regmap_add_irq_chip(9)devm_regmap_del_irq_chip(9)regmap_irq_chip_get_base(9)regmap_irq_get_virq(9)regmap_irq_get_domain(9)
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
- 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