regulator_ir...event_simple(9)
π NAME π
okay so bestie, welcome to the Kernel API Manual entry for regulator_irq_map_event_simple β it's literally the regulator IRQ notification hook for trivial IRQs β¨ like it's the low-effort queen of IRQ mapping and honestly? she ate π
β¨ SYNOPSIS β¨
int regulator_irq_map_event_simple (int irq , struct regulator_irq_data *rid , unsigned long *dev_mask );
π«Ά ARGUMENTS π«Ά
irqβ the number of the IRQ that actually happened, yep, that's it, that's the whole vibe check πridβ the info about the event the IRQ is telling you about π. This function fills in theregulator_err_state->notifsandregulator_err_state->errorsfields ofregulator_irq_data->statesas output. so it's giving "here's your data, now I'm writing into it" energy, no cap πΈdev_maskβ the mask that indicates which regulator originated the IRQ π¦ iykyk
π DESCRIPTION π
So here's the tea β: some regulators have an IRQ with one single, well-defined purpose β meaning it always indicates exactly one event, and it's relevant to exactly one regulator device. Those lucky low-maintenance icons can use this function as their map_event callback for their regulator IRQ notification helper πβ¨
But β and this is the important part, don't @ me β for regulator_irq_map_event_simple to even be viable, you gotta register exactly one rdev and exactly one error (in the "common_errs"-field) at IRQ helper registration π― like, one and one only. periodt. π
β RETURN β
0. that's it. that's the whole return value. iconic honestly π
π¦ SEE ALSO π¦
- the kernel file
./drivers/regulator/irq_helpers.cπ§ regulator_irq_helper(9)regulator_irq_helper_cancel(9)
go read those next bestie, they're right there π
and that's a wrap! π big mwah to the ./drivers/regulator crew, this page is dated October 2026, and the whole thing lives under regulator_ir...event_simple(9) β stay slay, stay regulated π₯π
π¦ 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