devm_regula...et_exclusive(9)
π
devm_regula...et_exclusive(9) β like, the full name is devm_regulator_bulk_get_exclusive
okay so bestie, welcome to the Kernel API Manual π (yes the header truncates the name, that's just how it vibes β the real one is devm_regulator_bulk_get_exclusive).
β¨ NAME β¨
devm_regulator_bulk_get_exclusive β managed exclusive get of multiple regulator consumers. it's giving "grab the whole friend group at once, and they get auto-released later" π«Ά
πΈ SYNOPSIS πΈ
int devm_regulator_bulk_get_exclusive (struct device *dev , int
num_consumers , struct regulator_bulk_data *consumers );
π¦ ARGUMENTS π¦
devβ the device to supply. literally the main character here π₯num_consumersβ how many consumers to register. count 'em, bestie.consumersβ the configuration of consumers; the clients get stored here. this is where the good stuff lands π
π DESCRIPTION π
so it returns 0 on success, and a negative error number on failure. periodt.
this helper function lets drivers exclusively get several regulator consumers in one single operation, with management baked in β the regulators will automatically be freed when the device is unbound β¨. that's the "managed" part, iykyk.
and listen: if ANY of the regulators can't be acquired, then any regulators that were already allocated will be freed before returning to the caller. no leaks, no leftover mess, she cleans up after herself π
π 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_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)
okay that's the whole page bestie, go read the source, it ate πβ¨
sign-off time: this lil masterpiece lives in ./drivers/regulator, dated October 2026, and the manual name on the tin is Kernel API Manual πΈ mwah, bye π
π¦ 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