regmap_irq_...onfig_simple(9)
π regmap_irq_set_type_config_simple(9) β Kernel API Manual β¨
okay so bestie, you're looking at the page for regmap_irq_set_type_config_simple(9) from the Kernel API Manual, and honestly? it's a little cutie. it's the "simple IRQ type configuration callback" β that's literally its NAME, no cap. let's get into it π
πΈ SYNOPSIS πΈ
int regmap_irq_set_type_config_simple (unsigned int **buf , unsigned int
type , const struct regmap_irq *irq_data , int idx , void *irq_drv_data
);
like, that's the whole signature. five args. she's not complicated and we love that for her π
π¦ ARGUMENTS π¦
bufβ the buffer holding your configuration register values. and listen, this is not a flat array, it's giving 2D main character energy:num_config_basesrows, and each row hasnum_config_regselements. that detail matters, iykyk πtypeβ the IRQ type you're asking for. that's it, that's the vibe.irq_dataβ the IRQ that's being configured rn. point it at the right one pls.idxβ the index of the irq's config registers inside each arraybuf[i]. so it's like, which slot in every row you're touching. precision. slay.irq_drv_dataβ driver specific IRQ data. your driver's own little bag of stuff, passed straight through π«Ά
π DESCRIPTION π
so what even is this? it's a struct regmap_irq_chip->set_type_config callback β specifically the one that's suitable for chips with one config register. one. single. register. minimal queen π
what it does: register values get updated according to the struct regmap_irq_type data associated with an IRQ. so the type info attached to the IRQ drives the update, and the callback does the register-writing dance. iconic, honestly.
β SEE ALSO β
- Kernel file
./drivers/base/regmap/regmap-irq.c regmap_irq_get_irq_reg_linear(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)
ngl the whole squad is listed up there β if this page didn't answer it, one of those will. go read them, bestie, they're all in the same friend group π§
and that's the whole page!! π₯³ it's from ./drivers/base/regmap, dated October 2026, in the classic regmap_irq_...onfig_simple(9) flavor β mwah π go configure those IRQ types, you gorgeous nerd ππ
π¦ 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