regulator_bulk_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 regulator_bulk_get(9) 🌸

okay so bestie, welcome to the Kernel API Manual β€” this one's from regulator_bulk_get(9) and it's genuinely so useful, no cap πŸ’…


✨ NAME ✨

regulator_bulk_get β€” get multiple regulator consumers 🫢 (yes, multiple, we're being efficient today)


πŸŽ€ SYNOPSIS πŸŽ€

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

πŸ’– ARGUMENTS πŸ’–

  • dev β€” the Device to supply. like, who's getting the power, bestie πŸ”Œ
  • num_consumers β€” Number of consumers to register. count 'em, don't guess πŸ’€
  • consumers β€” Configuration of consumers; clients are stored here. this is the spot where the good stuff lands πŸ“₯

πŸ¦‹ DESCRIPTION πŸ¦‹

This helper function lets drivers get several regulator consumers in one single operation β€” like ordering the whole group's boba in one go instead of twelve separate trips πŸ§‹βœ¨

But here's the important part, and I need you to hear me: if any of the regulators cannot be acquired, then any regulators that were already allocated get freed before returning to the caller. so it's all-or-nothing, no half-committed vibes. it cleans up after itself, which honestly? iconic 🌈


⭐ RETURN ⭐

0 on success, or a negative error number on failure. that's it, that's the whole mood πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/regulator/core.c β€” go read it, iykyk πŸ“–

and the whole extended family, because this kernel module is huge and everyone's invited to the group chat πŸ’œ


πŸ’« sign-off πŸ’«

this page lives in ./drivers/regulator, dated October 2026, and it goes by regulator_bulk_get(9). stan a well-documented kernel helper πŸŽ€πŸ”₯ bye bestie, go get those regulators πŸ’œ

πŸ“¦ where this page comes from