devm_regulator_bulk_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ devm_regulator_bulk_get(9) β€” like, the whole vibe ✨

okay so bestie, welcome to the Kernel API Manual πŸŽ€ this one's called devm_regulator_bulk_get, and it is literally the group-chat way to grab a bunch of regulator consumers all at once. no cap. sit down, hydrate, let's go πŸ’…


✨ NAME ✨

devm_regulator_bulk_get β€” managed get multiple regulator consumers 🫢

like, "managed" is the main character word here, remember it.


🌸 SYNOPSIS 🌸

int devm_regulator_bulk_get (struct device *dev , int num_consumers ,
struct regulator_bulk_data *consumers );

that's the whole signature, bestie, don't let the line break scare you πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device to supply. yeah. the device. it's giving "who's the parent here" energy.
  • num_consumers β€” number of consumers to register. count them. all of them. πŸ“‹
  • consumers β€” configuration of consumers; clients are stored here. so this thing goes in, and the actual clients get plopped inside it. your little storage bin πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

return 0 on success, a negative error number on failure. that's it, that's the contract, periodt.

This helper function allows drivers to get several regulator consumers in one operation with management, and the regulators will automatically be freed when the device is unbound. yes bestie, automatically ✨ you don't have to clean up, the devres machinery has your back, it's giving fiercely responsible 🧚

⚠️ ok but listen β€” if any of the regulators cannot be acquired, then any regulators that were allocated will be freed before returning to the caller. so it unwinds itself. all-or-nothing. the way that it refuses to leave you with half a mess πŸ’€ iconic behavior honestly.

🌈 SEE ALSO 🌈

Kernel file ./drivers/regulator/devres.c β€” plus the whole extended friend group, fr fr:


and that's the page πŸ’… go forth and bulk-get your regulators, bestie, you're gonna slay πŸ“

mwah πŸ’œ β€” brought to you from ./drivers/regulator, dated October 2026, which is genuinely so soon, like, time is a construct fr fr ⭐

πŸ“¦ where this page comes from