STRUCT RPMH_VREG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to the struct rpmh_vreg(9) page β€” yes, from the Kernel API Manual, and it's giving main character energy. struct rpmh_vreg is literally the individual RPMh regulator data structure encapsulating a single regulator device. That's the whole name, no cap. πŸ’…


✨ SYNOPSIS ✨

struct rpmh_vreg {
    struct device                   *dev;
    u32 addr;
    struct regulator_desc           rdesc;
    const struct rpmh_vreg_hw_data  *hw_data;
    bool always_wait_for_ack;
    int enabled;
    bool bypassed;
    int voltage_selector;
    unsigned int                    mode;
 };

πŸŽ€ Members πŸŽ€

here's the member-by-member vibe check, bestie:

  • dev β€” Device pointer for the top-level PMIC RPMh regulator parent device. This is used as a handle in RPMh write requests. 🫢
  • addr β€” Base address of the regulator resource within an RPMh accelerator.
  • rdesc β€” Regulator descriptor. simple as that. ✨
  • hw_data β€” PMIC regulator configuration data for this RPMh regulator.
  • always_wait_for_ack β€” Boolean flag indicating if a request must always wait for an ACK from RPMh before continuing even if it corresponds to a strictly lower power state (e.g. enabled --> disabled). 😭
  • enabled β€” Flag indicating if the regulator is enabled or not.
  • bypassed β€” Boolean indicating if the regulator is in bypass (pass-through) mode or not. This is only used by BOB rpmh-regulator resources. πŸ¦‹
  • voltage_selector β€” Selector used for get_voltage_sel and set_voltage_sel callbacks.
  • mode β€” RPMh VRM regulator current framework mode. πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/regulator/qcom-rpmh-regulator.c β€” plus enum rpmh_regulator_type(9), enum regulator_hw_type(9), struct rpmh_vreg_hw_data(9), struct rpmh_vreg_init_data(9), rpmh_regulator_send_request(9), rpmh_regulator_vrm_get_optimum_mode(9), and rpmh_regulator_init_vreg(9). Go read those, bestie, iykyk. πŸ‘‘βœ¨


mwah πŸ’‹ source/version check: this page comes from ./drivers/regulator, dated October 2026, and it's literally the struct rpmh_vreg(9) manual. bye bestie 🫢✨

πŸ“¦ where this page comes from