set_supply(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ set_supply(9) ✨

Kernel API Manual, bestie β€” we’re so back πŸ’–

🌸 NAME 🌸

set_supply β€” set regulator supply regulator. That’s literally the whole vibe: it sets the supply regulator for a regulator, no cap πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

int set_supply (struct regulator_dev *rdev , struct regulator_dev
       *supply_rdev );

πŸŽ€ ARGUMENTS πŸŽ€

  • rdev β€” the regulator, and it’s locked πŸ”’ the page literally says β€œregulator (locked)”.
  • supply_rdev β€” the supply regulator, also locked πŸ”’ the page says β€œsupply regulator (locked))”, and yes, both of these babies are locked, periodt.

πŸ’– DESCRIPTION πŸ’–

Okay so platform initialisation code calls this to set the supply regulator for this regulator. The whole point? It ensures that a regulator’s supply will also be enabled by the core when its child is enabled β€” yes, the supply gets switched on too, fr fr ✨

πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” slay πŸ’…
  • a negative error number on failure β€” not slay 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/regulator/core.c β€” that’s where the regulator core lives, iykyk 🫢

The full SEE ALSO friend group:

and that’s the whole crew πŸ«ΆπŸ’œ


Cute sign-off bestie: source/version is ./drivers/regulator, date is October 2026, and the page is set_supply(9) β€” that’s the footer, periodt πŸ’–πŸŽ€
πŸ“¦ where this page comes from