regulator_disable_deferred(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… regulator_disable_deferred(9) πŸ’…

okay so bestie, we're deep in the Kernel API Manual today and this one is genuinely such a slay little function. it's giving "i'll turn it off… but like, in a minute." no cap. let's get into it 🫢


✨ NAME ✨

regulator_disable_deferred β€” disable regulator output with delay πŸŽ€


🌸 SYNOPSIS 🌸

int regulator_disable_deferred (struct regulator *regulator , int ms );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • regulator β€” the regulator source, aka the thing we're about to switch off πŸ’…
  • ms β€” milliseconds until the regulator is disabled ⏳ like, how long we wait before the lights go out

πŸ’– DESCRIPTION πŸ’–

okay so what this does: it runs regulator_disable on the regulator after a delay. that's it, that's the vibe. ✨

and why would you even want that? because it's intended for use with devices that require some time to quiesce 😌 β€” like, some hardware needs a lil moment to chill and settle before you cut the power, and this is the function that respects that. main character energy of letting things wind down gracefully.


⚠️ NOTE ⚠️

lowkey important, do not skip this one: this will only disable the regulator output if:

  • no other consumer devices have it enabled πŸ‘€
  • the regulator device supports disabling 🧚
  • and machine constraints permit this operation πŸŽ€

so yeah β€” three vibe checks it has to pass, or nothing happens. fr fr.


πŸ”₯ RETURN πŸ”₯

0 on success, or a negative error number on failure πŸ’€ (so like, if you get a negative number back, that's your sign something went sideways πŸ™ˆ).


🌈 SEE ALSO 🌈

bestie, buckle up, this list is long and honestly iconic. all of these live in the kernel file ./drivers/regulator/core.c:

like… go off, SEE ALSO section πŸ‘‘ genuinely ate.


okay that's the whole page bestie!! sourced straight from ./drivers/regulator, dated October 2026, and yes the header still says regulator_disable_deferred(9) because we keep it consistent πŸ’œ mwah, go disable something (with a delay, obviously) 🧚✨

πŸ“¦ where this page comes from