ufshcd_parse_regulator_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 ⭐

  • 0 upon success πŸŽ‰
  • < 0 upon failure πŸ˜”

πŸ‘‘ SEE ALSO πŸ‘‘

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