devm_regulat...ter_notifier(9)
π devm_regulat...ter_notifier(9) β the Kernel API Manual one π
okay so bestie, you found the page for devm_regulator_register_notifier from the Kernel API Manual. it's a devres-flavoured lil wrapper and honestly it's giving "i set it up and the kernel cleans it up for me" main character energy β¨
πΈ NAME πΈ
devm_regulator_register_notifier β Resource managed regulator_register_notifier
like, the notifier registration, but with a babysitter. π
β¨ SYNOPSIS β¨
int devm_regulator_register_notifier (struct regulator *regulator ,
struct notifier_block *nb );
that's the whole signature, copy it exactly, do not @ me π
π«Ά ARGUMENTS π«Ά
regulatorβ regulator source π (this is the regulator you're listening to)nbβ notifier block π¦ (the thing that gets notified)
π₯ DESCRIPTION π₯
okay so here's the tea: the notifier will be registers under the consumer device, and it will automatically be unregistered when the source device is unbound. π
like literally, you don't have to do the cleanup yourself β devres handles it. no cap. that's the whole vibe. the wording in the original is literally "will be registers" and "automatically be unregistered", so bestie i'm telling you exactly what it says, grammar quirks and all π
π SEE ALSO π
Kernel file ./drivers/regulator/devres.c β go read the source, it's iconic β
devm_regulator_get(9)devm_regulator_get_exclusive(9)devm_regulator_get_enable_optional(9)devm_regulator_get_enable(9)devm_regulator_get_optional(9)devm_regulator_get_enable_read_voltage(9)devm_regulator_put(9)devm_regulator_bulk_get(9)devm_regulator_bulk_get_exclusive(9)devm_regulator_bulk_get_const(9)devm_regulator_bulk_put(9)devm_regulator_bulk_get_enable(9)devm_regulator_register(9)devm_regulator_register_supply_alias(9)devm_regulator_bulk_register_supply_alias(9)devm_regulator_unregister_notifier(9)devm_regulator_irq_helper(9)devm_of_regulator_get(9)devm_of_regulator_get_optional(9)
ngl the whole list is a whole friend group of devm_regulator_* functions and they all ate. π go say hi to all of them.
and that's the page, bestie!! π§ from ./drivers/regulator, dated October 2026, and the manual section is still devm_regulat...ter_notifier(9) because some titles are just too long for their own good π 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