mmc_regulator_set_vqmmc2(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ mmc_regulator_set_vqmmc2(9) ✨

okay so bestie, welcome to the Kernel API Manual for mmc_regulator_set_vqmmc2(9) β€” yes the whole manual name is a vibe, we love her, she's iconic, let's get into it πŸŽ€


πŸ’… NAME πŸ’…

mmc_regulator_set_vqmmc2 β€” sets vqmmc2 as per the ios->vqmmc2_voltage, no cap 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

int mmc_regulator_set_vqmmc2 (struct mmc_host *mmc , struct mmc_ios *ios
);

literally that's the whole thing. short and slay. ✨


🌸 ARGUMENTS 🌸

  • mmc β€” the mmc host to regulate, she's the main character here πŸ‘‘
  • ios β€” the io bus settings, aka where the voltage tea gets spilled 🍡

🧚 DESCRIPTION 🧚

So what does she actually do? She sets a new voltage level for the vqmmc2 regulator β€” which, iykyk, may correspond to the vdd2 regulator for an SD UHS-II interface. This function is expected to be called by mmc host drivers, so like… driver besties only, this is your moment πŸ’–

Now for the return value, listen up because this is the important part:

  • Returns a negative error code on failure 😭 (it's giving flop, but like, handled)
  • Returns zero if the voltage level was changed successfully βœ… slay
  • Returns a positive value if the level didn't need to change πŸ’€ β€” like, she was already at that voltage, no edits needed, the vibe check passed
ngl, that positive-means-no-change thing is lowkey the trap, so don't go treating "nonzero" as "error" bestie, the positive value is fine fr fr 🫢

🌈 SEE ALSO 🌈

Kernel file ./drivers/mmc/core/regulator.c β€” home of all these iconic siblings:

all of them, no skipping, we don't gatekeep the family πŸ’œ


and that's the page!! πŸŽ€ this lil manual lives in ./drivers/mmc/core, dated October 2026, and she's part of the Kernel API Manual β€” go forth and regulate, bestie, you got this πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from