regulator_set_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… regulator_set_mode(9) β€” set regulator operating mode πŸ’…

okay so bestie, welcome to regulator_set_mode(9) from the Kernel API Manual ✨ this is the little kernel API page for setting a regulator’s operating mode, and we are keeping every detail cute and intact πŸ’–

🌸 NAME 🌸

regulator_set_mode β€” set regulator operating mode

✨ SYNOPSIS ✨

int regulator_set_mode (struct regulator *regulator , unsigned int mode );

πŸŽ€ ARGUMENTS πŸŽ€

  • regulator β€” regulator source.
  • mode β€” operating mode - one of the REGULATOR_MODE constants.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this one sets the regulator operating mode to increase regulator efficiency or improve regulation performance. that’s the whole serve πŸ’…

⚠️ NOTE ⚠️

bestie, important: Regulator system constraints must be set for this regulator before calling this function, otherwise this call will fail. no cap, do the constraints first 😭

πŸ”₯ RETURN πŸ”₯

0 on success or a negative error number on failure. periodt.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/regulator/core.c, plus the whole iconic lineup:


xoxo bestie 🫢 this regulator_set_mode(9) page is from ./drivers/regulator, dated October 2026 β€” mwah πŸ’‹

πŸ“¦ where this page comes from