regmap_add_irq_chip_fwnode(9)
πΈ NAME πΈ
regmap_add_irq_chip_fwnode β use standard regmap IRQ controller handling. This page is from the Kernel API Manual, and it's literally the regmap_add_irq_chip_fwnode(9) glow-up: fwnode edition. π
β¨
β¨ SYNOPSIS β¨
int regmap_add_irq_chip_fwnode (struct fwnode_handle *fwnode , struct
regmap *map , int irq , int irq_flags , int irq_base , const struct
regmap_irq_chip *chip , struct regmap_irq_chip_data **data );
π ARGUMENTS π
fwnodeβ the firmware node where the IRQ domain should be added to. that's the destination, bestie πmapβ the regmap for the device. the device's regmap, iconic.irqβ the IRQ the device uses to signal interrupts. the interrupt signal's whole vibe.irq_flagsβ theIRQF_flags to use for the primary interrupt. flags for the primary interrupt β noted, bestie π«Άirq_baseβ allocate at a specific IRQ number ifirq_base > 0. conditional cutie.chipβ configuration for the interrupt controller. the controller config, slay.dataβ runtime data structure for the controller, allocated on success. allocated on success β love that for you.
π DESCRIPTION π
Okay so, the return value: 0 on success or an errno on failure. That's it, that's the rule. π
For this to be efficient, the chip really should use a register cache. no cap, it matters. And the chip driver is responsible for restoring the register values used by the IRQ controller over suspend and resume. driver's job, bestie β don't forget it. π«Ά
π¦ SEE ALSO π¦
- Kernel file
./drivers/base/regmap/regmap-irq.c regmap_irq_get_irq_reg_linear(9)regmap_irq_set_type_config_simple(9)regmap_add_irq_chip(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)
source/version: ./drivers/base/regmap Β· date: October 2026 Β· page: regmap_add_irq_chip_fwnode(9) β bye bestie, go make those IRQs iconic π
πβ¨
π¦ 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