regulator_re...power_budget(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… regulator_request_power_budget(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” yes that's the manual name, we're being fancy today πŸ‘‘. Today's main character is regulator_request_power_budget, and it's literally exactly what it sounds like: you walk up to a regulator and you're like "hi, can I have some power budget please πŸ₯Ί" and it either says slay or it says no. No cap.


✨ NAME ✨

regulator_request_power_budget β€” request power budget on a regulator 🫢

Like... you're asking the regulator for a budget. For power. It's giving "mom can I have $20" energy but for electrons ⚑.


πŸ¦‹ SYNOPSIS πŸ¦‹

int regulator_request_power_budget (struct regulator *regulator ,
unsigned int pw_req );

That's the whole vibe. Two arguments, one int coming back at you. Simple, iconic, no notes πŸ’….


πŸŽ€ ARGUMENTS πŸŽ€

  • regulator β€” the regulator source, aka the one supplying the power. This is your supply bestie, the main character of the power department πŸ‘‘.
  • pw_req β€” Power requested. The amount of budget you're asking for, as an unsigned int. Shoot your shot, girl 🌸.

⭐ RETURN ⭐

0 on success β€” slay, you got your budget πŸ’–

Or a negative error number on failure β€” meaning it didn't work out, and it's telling you how it didn't work out. Not zero? Not success. Periodt πŸ’€.


🌈 SEE ALSO 🌈

okay so this is the part where the manpage just. lists. everyone. the entire regulator extended universe, fr fr. buckle up bestie, because we're meeting the whole friend group 🧚:

the kernel file itself β€” ./drivers/regulator/core.c (yes, that's where all this lives, iykyk)

the locking girlies πŸ”’

the setup / constraint squad 🌸

the get/put era πŸŽ€

the alias crew πŸ¦‹

enable / disable energy πŸ”₯

voltage / hardware detective hours πŸ”

current limit corner πŸ’œ

the power budget besties (our people 🫢)

mode / error / load vibes ✨

notifier nation πŸ“£

bulk operations, because doing it one at a time is exhausting 😭

the serious ones 🚨

drvdata delegation delegation πŸ’…


πŸ’‘ real talk: this whole list is just the SEE ALSO, ok? Every single one of these is a real page you can go read. Don't sleep on them. They're all referenced here for a reason β€” go be nosy bestie πŸ™ˆ

okay that's the whole page! literally everything, no cap, nothing skipped πŸ’–

and for the cute sign-off you asked for: this gem comes from the source path ./drivers/regulator and it's dated October 2026 β€” so yes, the future is now, and the future is regulators asking for power budgets πŸŒˆβœ¨πŸŽ€

bye bestie, go request your budget responsibly πŸ’…πŸ«Ά

πŸ“¦ where this page comes from