devm_regulator_get_enable(9)
πΈ devm_regulator_get_enable(9) πΈ
ok so bestie, you found the Kernel API Manual page for devm_regulator_get_enable(9) β and honestly? you're gonna be obsessed. it's giving "handled for you, no notes." π
β¨ NAME β¨
devm_regulator_get_enable β resource managed regulator get and enable π
π SYNOPSIS π
int devm_regulator_get_enable (struct device *dev , const char *id );
like, that's the whole vibe. short, sweet, iconic. π
π¦ ARGUMENTS π¦
devβ the device to supply. the main character, basically. πidβ the supply name or regulator ID. yes bestie, you have to name your regulator. iykyk. π
π DESCRIPTION π
okay so here's what's happening. this function gets and enables the regulator for the duration of the device life-time. that's the whole point β you get it, you turn it on, and it just stays handled for you. no cap.
and the way it cleans up after itself?? iconic. regulator_disable and regulator_put are automatically called on driver detach. so you literally don't have to think about it. resource managed devres really said "i gotchu" π«Άβ¨
if you wanna know more about the underlying mechanics, go see regulator_get and regulator_enable β they're the ones doing the actual heavy lifting. π§
π₯ SEE ALSO π₯
- Kernel file
./drivers/regulator/devres.c devm_regulator_get(9)devm_regulator_get_exclusive(9)devm_regulator_get_enable_optional(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_register_notifier(9)devm_regulator_unregister_notifier(9)devm_regulator_irq_helper(9)devm_of_regulator_get(9)devm_of_regulator_get_optional(9)
like, that's a whole friend group right there. go say hi to all of them fr fr. ππ
okay bestie, that's the tea β β this page lives in ./drivers/regulator and it's dated October 2026. go forth and enable your regulators, slay, and remember: devres has your back so you don't have to. periodt. π
β¨ππ¦
π¦ 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