devm_regulat...k_get_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🌈

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