STRUCT GPIO_REGULATOR_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ struct gpio_regulator_state(9) πŸ‘‘

okay so welcome to the Kernel API Manual page for struct gpio_regulator_state(9), bestie β€” it's literally the state-description era and we're obsessed. πŸ¦‹βœ¨

πŸ’– NAME πŸ’–

struct gpio_regulator_state β€” state description. periodt, that's the name, no cap. πŸ’…

✨ SYNOPSIS ✨

struct gpio_regulator_state {
    int value;
    int gpios;
 };

🌸 Members 🌸

  • value β€” microvolts or microamps. ⚑
  • gpios β€” bitfield of gpio target-states for the value. πŸŽ€

πŸ¦‹ Description πŸ¦‹

This structure describes a supported setting of the regulator and the necessary gpio-state to achieve it. fr fr, that's the whole vibe. πŸ’–

The n-th bit in the bitfield describes the state of the n-th GPIO from the gpios-array defined in gpio_regulator_config below. iykyk πŸ‘€βœ¨

🌈 SEE ALSO 🌈

Kernel file ./include/linux/regulator/gpio-regulator.h and struct gpio_regulator_config(9). 🫢


okay that's a wrap, bestie: source/version is ./include/linux/regulator, date is October 2026, and it's struct gpio_regulator_state(9) all the way down β€” mwah πŸ’‹πŸ”₯

πŸ“¦ where this page comes from