regulator_ir...event_simple(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the regulator_err_state->notifs and regulator_err_state->errors fields of regulator_irq_data->states as 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 πŸ¦‹

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