regulator_li...ardware_vsel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

hiii bestie 🫢 welcome to the regulator_li...ardware_vsel(9) page from the Kernel API Manual β€” manual name folded in near the top like a cute little name tag πŸŽ€. Okay so regulator_list_hardware_vsel is literally about getting the HW-specific register value for a selector ✨.

🌸 SYNOPSIS 🌸

int regulator_list_hardware_vsel (struct regulator *regulator , unsigned
       selector );

πŸŽ€ ARGUMENTS πŸŽ€

  • regulator β€” the regulator source, aka the main character you're asking about πŸ‘‘
  • selector β€” identifies the voltage to list, bestie πŸ”

✨ DESCRIPTION ✨

So here's the vibe: it converts the selector into a hardware-specific voltage selector that can be directly written to the regulator registers πŸ’…. And the address of the voltage register? You can determine it by calling regulator_get_hardware_vsel_register β€” that's the function, no cap 🧚.

πŸ’€ RETURN πŸ’€

  • 0 β€” success, slay πŸŽ‰
  • -EINVAL β€” if the selector is outside the supported range, oop πŸ™ˆ
  • -EOPNOTSUPP β€” if the regulator does not support voltage selectors, not every regulator is built for that πŸ’”

🌈 SEE ALSO 🌈

the whole kernel regulator friend group is right here, bestie 🫢


xoxo, signing off from the ./drivers/regulator source/version, October 2026, page regulator_li...ardware_vsel(9) πŸ’…βœ¨

πŸ“¦ where this page comes from