regulator_set_voltage_time(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

regulator_set_voltage_time β€” get raise/fall time πŸŽ€

okay so real quick bestie, this one's from the Kernel API Manual (yes the whole manual, we're deep in kernel land) and it's basically the "how long is this voltage glow-up gonna take" function ✨


🌸 SYNOPSIS 🌸

int regulator_set_voltage_time (struct regulator *regulator , int old_uV
, int new_uV );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • regulator β€” the regulator source, your main character 🫢
  • old_uV β€” starting voltage in microvolts (where we're coming from, the before pic πŸ’…)
  • new_uV β€” target voltage in microvolts (where we're going, the after pic ⭐)

✨ DESCRIPTION ✨

So you hand it the starting voltage and the ending voltage, and it attempts to calculate the time in microseconds needed to rise or fall to that new voltage πŸ”₯

That's it. That's the whole vibe. It's giving "how many microseconds till we're at the new voltage" energy, no cap πŸ’œ

ngl the word "attempts" is doing a lot of work there β€” it's a calculation, and calculations can fail. Which brings us to... πŸ‘€

πŸŽ€ RETURN πŸŽ€

Ramp time in microseconds, or a negative error number if the calculation failed 😭

So like β€” positive number? slay, you got your time ⭐. Negative number? that's an error, not a really tiny ramp time, don't get it twisted πŸ’€


πŸ’… SEE ALSO πŸ’…

Alright bestie, buckle up, this list is long β€” it's giving "the entire regulator family reunion" 🌈. The kernel file this lives in is ./drivers/regulator/core.c, and here's everyone it's linked with:


🌟 one last thing 🌟

This page lives in ./drivers/regulator, it's dated October 2026, and it's filed under regulator_set_voltage_time(9) β€” mwah, go read the rest of the family, ily, bye πŸ§šβ€β™€οΈπŸ’œπŸ“

πŸ“¦ where this page comes from