STRUCT REGULATOR_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct regulator_state(9) ✨

okay so bestie, welcome to the kernel API manual 🫢 β€” this one's all about struct regulator_state: what a regulator gets up to during low power system states πŸ‘‘


πŸ’– NAME πŸ’–

struct regulator_state β€” regulator state during low power system states 🌸


🌈 SYNOPSIS 🌈

struct regulator_state {
    int uV;
    int min_uV;
    int max_uV;
    unsigned int mode;
    int enabled;
    bool changeable;
 };

πŸŽ€ Members πŸŽ€

  • uV β€” the default operating voltage during suspend, and yes it can be adjusted among <min_uV, max_uV> πŸ’…
  • min_uV β€” the minimum suspend voltage that may be set ⭐
  • max_uV β€” the maximum suspend voltage that may be set ⭐
  • mode β€” operating mode during suspend πŸ’œ
  • enabled β€” operations during suspend ✨
    • DO_NOTHING_IN_SUSPEND
    • DISABLE_IN_SUSPEND
    • ENABLE_IN_SUSPEND
  • changeable β€” is this state can be switched between enabled/disabled πŸ™ˆ

πŸ¦‹ Description πŸ¦‹

This describes a regulator's state during a system wide low power state, fr fr πŸ’«

One of enabled or disabled must be set for the configuration to be applied. no cap, it's literally required 😭

🌟 SEE ALSO 🌟

Kernel file ./include/linux/regulator/machine.h struct regulation_constraints(9), struct regulator_consumer_supply(9), struct regulator_init_data(9) πŸ”₯


k that's the whole page, bestie β€” go be iconic with your suspend voltages πŸ’…βœ¨

source: ./include/linux/regulator Β· version/date: October 2026 Β· struct regulator_state(9) πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from