regulator_get_current_limit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ regulator_get_current_limit(9) ✨

okay so bestie, welcome to the Kernel API Manual corner of the group chat πŸ’–. Today’s main character is regulator_get_current_limit(9), and yes she is here to get regulator output current. Slay.

πŸ’– NAME πŸ’–

regulator_get_current_limit β€” get regulator output current. That’s the whole name vibe, no cap.

🌸 SYNOPSIS 🌸

int regulator_get_current_limit (struct regulator *regulator );

✨ ARGUMENTS ✨

  • regulator β€” regulator source. That’s the thing you’re passing in, bestie 🫢.

πŸŽ€ RETURN πŸŽ€

It returns the current supplied by the specified current sink in uA, or a negative error number on failure 😭. So yes: happy path gives you microamps, sad path gives you a negative error number.

πŸ¦‹ NOTE πŸ¦‹

Heads-up, gorgeous: if the regulator is disabled it will return the current value. This function should not be used to determine regulator state β€” it is not giving state-inspector energy, okay? πŸ’…

🌈 SEE ALSO 🌈

Kernel file ./drivers/regulator/core.c is right here, and the whole squad is:

Cute sign-off: this page is from ./drivers/regulator, dated October 2026, and it’s regulator_get_current_limit(9) signing off β€” byeee bestie πŸ’…βœ¨.

πŸ“¦ where this page comes from