ufshcd_parse_regulator_info(9)
β¨ ufshcd_parse_regulator_info β¨
okay bestie, so this is a page from the Kernel API Manual for ufshcd_parse_regulator_info(9) β yes it's a function, yes it's got a (9) after it, that's just how kernel docs roll, don't worry about it π
πΈ NAME πΈ
ufshcd_parse_regulator_info β literally just: go get the regulator info from the device tree π
π¦ SYNOPSIS π¦
int ufshcd_parse_regulator_info (struct ufs_hba *hba );
π ARGUMENTS π
hbaβ the per adapter instance. that's it. that's the whole argument. it's giving "one job, one parameter" and honestly? iconic. π
π DESCRIPTION π
so what this does is grab the regulator info from the device tree for the vcc, vccq, and vccq2 power supplies. those three. all of them. no cap. β‘
now here's the important bit, bestie, so like, listen up π«Ά β if any of those supplies are not defined, then the code assumes they're always-on, and it returns zero. like, "oh you didn't mention it? cool, it's just always on then, no notes." π
but!! if the property is defined and the parsing fails, then it returns the corresponding error. so defined-but-broken is not a vibe, and it will absolutely tell you about it. π
β RETURN β
0upon success π< 0upon failure π
π SEE ALSO π
- Kernel file
./drivers/ufs/host/ufshcd-pltfrm.cβ the source, the mothership, the main character π ufshcd_parse_tx_eq_settings_for_gear(9)ufshcd_parse_clock_min_max_freq(9)ufshcd_negotiate_pwr_params(9)ufshcd_parse_gear_limits(9)ufshcd_pltfrm_init(9)ufshcd_pltfrm_remove(9)
all the siblings, all referenced, all present and accounted for π§
that's the whole page, bestie π β brought to you from ./drivers/ufs/host, dated October 2026, and yes it's still ufshcd_parse_regulator_info(9) at the bottom, we love a consistent footer πβ¨
π¦ 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