regmap_irq_get_virq(9)
π regmap_irq_get_virq(9) β the kernel API manual, bestie edition
okay so you're looking at regmap_irq_get_virq(9), and honestly? it's a little one but it's a useful little one. it's the "hey kernel, what's the virtual IRQ for this chip interrupt" girlie. let's get into it π
β¨ NAME β¨
regmap_irq_get_virq β map an interrupt on a chip to a virtual IRQ π¦
like, you got a physical-ish interrupt chilling on a chip, and you want the virtual IRQ number that goes with it. that's the whole gig. periodt.
β¨ SYNOPSIS β¨
int regmap_irq_get_virq (struct regmap_irq_chip_data *data , int irq );
that's it. that's the function. two args, one int coming back at you. π
β¨ ARGUMENTS β¨
dataβ the regmap irq controller you're operating on, bestie. this is the chip data struct you're poking at. π«Άirqβ the index of the interrupt you're requesting, in the chip IRQs. so like, it's an index into the chip's IRQ list, not some rando number, iykyk. π₯
β¨ DESCRIPTION β¨
so what's it for? it's useful for drivers to request their own IRQs. that's literally the description. short and iconic. your driver wants its own IRQ, this is the hookup. no cap. β
π SEE ALSO π
- Kernel file:
./drivers/base/regmap/regmap-irq.cβ go read the source, it's right there π regmap_irq_get_irq_reg_linear(9)regmap_irq_set_type_config_simple(9)regmap_add_irq_chip_fwnode(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_domain(9)
the whole regmap-irq friend group, basically. go say hi to all of them π
and that's the tea, babe π β this page lives in ./drivers/base/regmap and it's dated October 2026, so jot that down in your notes app. mwah πβ¨
π¦ 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