regulator_count_voltages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– regulator_count_voltages πŸ’–

okay bestie, this is the Kernel API Manual page for regulator_count_voltages β€” yes it's a whole mouthful, and yes it ate πŸ’…βœ¨


🌸 NAME 🌸

regulator_count_voltages β€” count regulator_list_voltage() selectors. literally that's the whole vibe 🫢

✨ SYNOPSIS ✨

int regulator_count_voltages (struct regulator *regulator );

πŸŽ€ ARGUMENTS πŸŽ€

  • regulator β€” regulator source. that's the one and only argument, bestie πŸ’–

πŸ”₯ RETURN πŸ”₯

Number of selectors for regulator, or negative error number. no cap β€” if it's negative, something went sideways 😭

πŸ’… DESCRIPTION πŸ’…

Selectors are numbered starting at zero, and typically correspond to bitfields in hardware registers. so like index 0, 1, 2… and they map to hardware register bitfields, iykyk 🧚✨

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/regulator/core.c is the source, and the whole regulator friend group is here:


that's the whole page, bestie 🫢 source/version: ./drivers/regulator Β· date: October 2026 Β· page: regulator_count_voltages(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from