rpmh_regulator_init_vreg(9)
π rpmh_regulator_init_vreg(9) π
okay so bestie, welcome to the kernel API manual for rpmh_regulator_init_vreg(9) β yes that (9) means it's a kernel-internal thing, iykyk. This one's literally about initializing all the attributes of an rpmh-regulator. all of them. no cap. β¨
π NAME π
rpmh_regulator_init_vreg β initialize all attributes of an rpmh-regulator
like, every single attribute. that's the whole job. π«Ά
πΈ SYNOPSIS πΈ
int rpmh_regulator_init_vreg (struct rpmh_vreg *vreg , struct device
*dev , struct device_node *node , const char *pmic_id , const struct
rpmh_vreg_init_data *pmic_rpmh_data );
she takes five arguments and returns an int. that's her. π
β¨ ARGUMENTS β¨
vregβ Pointer to the individual rpmh-regulator resource. this is the main character right here πdevβ Pointer to the top level rpmh-regulator PMIC device. the big boss energy device πnodeβ Pointer to the individual rpmh-regulator resource device node. the specific little node for this resource, not the top-level one, don't mix them up bestie πpmic_idβ String used to identify the top level rpmh-regulator PMIC device on the board. a string! just a lil string doing identification duties πpmic_rpmh_dataβ Pointer to a null-terminated array of rpmh-regulator resources defined for the top level PMIC device. null-terminated, so like, she knows where it ends. iconic behavior fr fr πΈ
π RETURN π
0 on success, or a negative error number on failure. that's it. zero = slay, negative = something went wrong π₯²
π¦ SEE ALSO π¦
- Kernel file
./drivers/regulator/qcom-rpmh-regulator.c enum rpmh_regulator_type(9)enum regulator_hw_type(9)struct rpmh_vreg_hw_data(9)struct rpmh_vreg(9)struct rpmh_vreg_init_data(9)rpmh_regulator_send_request(9)rpmh_regulator_vrm_get_optimum_mode(9)
go read those next, bestie, they're all connected π§ββοΈ
ok that's the whole page π no bugs section, no warnings, nothing extra β she's a clean, simple, fully-documented init function. obsessed.
and that's a wrap! π this lil manpage lives in ./drivers/regulator, dated October 2026, and it's titled rpmh_regulator_init_vreg(9) β part of the Kernel API Manual. go forth and initialize ur regulators, bestie ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms