regulator_se...age_time_sel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… regulator_set_voltage_time_sel(9) β€” the glow-up edition

okay bestie, grab your iced coffee, we're reading a kernel API page together. this is regulator_set_voltage_time_sel from the Kernel API Manual (the (9) girlies know what's up πŸŽ€). she's a little function with one job and she does it flawlessly.


✨ NAME ✨

regulator_set_voltage_time_sel β€” get that raise/fall time, literally πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int regulator_set_voltage_time_sel (struct regulator_dev *rdev ,
unsigned int old_selector , unsigned int new_selector );

no cap, that's the whole signature. three args, one int, zero drama.


🌸 ARGUMENTS 🌸

  • rdev β€” the regulator source device, aka the main character of this whole situation πŸ‘‘
  • old_selector β€” the selector for your starting voltage (where you're at rn)
  • new_selector β€” the selector for your target voltage (where you're tryna be)

πŸ’– DESCRIPTION πŸ’–

so here's the vibe: you hand her the starting selector and the target selector, and she gives you back the time in microseconds it takes to rise or fall to that new voltage. that's it. that's the whole function. she ate and left no crumbs πŸ”₯

and like, if you're a driver and you're providing ramp_delay in regulation_constraints? you can absolutely use this as your set_voltage_time_sel operation. it's giving plug-and-play. iykyk 🧚


⭐ RETURN ⭐

  • the ramp time, in microseconds ⏱️
  • or a negative error number if the calculation failed 😭 (yes she can flop, but only when the math flops first)

🌈 SEE ALSO 🌈

okay this is the part where she name-drops literally everyone at the function party 🫢. also, kernel file ./drivers/regulator/core.c β€” that's where she lives, come visit:


🫢 friendly reminder bestie: the time comes back in microseconds, and a negative number means the calculation failed β€” so don't go treating that negative like it's a real duration, mmkay?

and that's the page!! mwah πŸ’‹ this little icon is filed under ./drivers/regulator, dated October 2026, and honestly? she's gonna stay iconic. periodt. 🌸✨

πŸ“¦ where this page comes from