regmap_irq_...q_reg_linear(9)
π NAME π
regmap_irq_get_irq_reg_linear β the linear IRQ register mapping callback, bestie. That's it, that's the whole gig. β¨
π SYNOPSIS π
unsigned int regmap_irq_get_irq_reg_linear (struct regmap_irq_chip_data
*data , unsigned int base , int index );
πΈ ARGUMENTS πΈ
dataβ the data for thestruct regmap_irq_chip. Like, the whole vibe of your chip lives in here. π«Άbaseβ the base register. The starting point, the home base, the main character. πindexβ the register index. Which one you're reaching for, one by one down the line. π«
β¨ DESCRIPTION β¨
Okay so here's the tea, bestie β this function hands you back the register address that lines up with the base and index you passed in. No cap, it literally just does the formula:
base + index * regmap_stride * irq_reg_stride
That's it. That's the whole function. Linear mapping, one formula, no drama. It's giving "simple and iconic" and honestly? Obsessed. π¦
π₯ SEE ALSO π₯
- Kernel file
./drivers/base/regmap/regmap-irq.cβ go read the source, iykyk π§ 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_virq(9)regmap_irq_get_domain(9)
Go off, read the whole squad. The way that they all ate, fr fr. π
That's a wrap, babe β brought to you by the fine people over at ./drivers/base/regmap, stamped October 2026, and yes the man page header still says regmap_irq_...q_reg_linear(9) because truncation said "not me being mysterious" π slay, go map some registers. π
π¦ 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