mmc_regulator_set_vqmmc2(9)
β¨ 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:
mmc_ocrbitnum_to_vdd(9)mmc_regulator_get_ocrmask(9)mmc_regulator_set_ocr(9)mmc_regulator_set_vqmmc(9)mmc_regulator_register_undervoltage_notifier(9)mmc_regulator_unregister_undervoltage_notifier(9)mmc_regulator_get_supply(9)mmc_regulator_enable_vqmmc(9)mmc_regulator_disable_vqmmc(9)
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
- 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