devm_regulat...k_get_enable(9)
π devm_regulator_bulk_get_enable(9) π
okay bestie, welcome to the Kernel API Manual β today's main character is devm_regulator_bulk_get_enable(9) and honestly? she's a whole vibe. let's get into it π¦
β¨ NAME β¨
devm_regulator_bulk_get_enable β the managed "get 'n enable" helper for multiple regulators at once. yes, plural. yes, she multitasks. π
πΈ SYNOPSIS πΈ
int devm_regulator_bulk_get_enable (struct device *dev , int
num_consumers , const char * const *id );
like, literally that's the whole signature. no cap. π«Ά
π ARGUMENTS π
devβ the device to supply. yep, the one getting all this regulator goodness.num_consumersβ number of consumers to register. tell her how many besties are coming to the party πidβ list of supply names or regulator IDs. the guest list, basically. π§
π₯ DESCRIPTION π₯
so here's the tea: return 0 on success, and a negative error number on failure. that's it, that's the contract. π
This helper function lets drivers get several regulator consumers in one operation β with management. and by "management" we mean the regulators will automatically be freed when the device is unbound. she cleans up after herself, we love a self-sufficient icon π
and if any of the regulators cannot be acquired? don't panic β any regulators that were allocated will be freed before returning to the caller. nothing gets left behind, it's giving responsible queen energy β¨π
π 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_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_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 a whole friend group of regulator functions. iykyk π
and that's a wrap, bestie π¬ β this gem comes to you straight from ./drivers/regulator, dated October 2026, and honestly it ate. go read the other ones too, 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