mmc_regulator_get_supply(9)
π mmc_regulator_get_supply(9) β the Kernel API Manual glow-up π
okay so bestie, we're in the Kernel API Manual today and the star of the show is mmc_regulator_get_supply β yes the (9) is the section, yes it's giving kernel-internals, and yes we're gonna get through it together π«Ά
β¨ NAME β¨
mmc_regulator_get_supply β the function that tries to get VMMC</> and VQMMC</> regulators for a host. that's it, that's the whole vibe. it's literally in the name, no cap π
πΈ SYNOPSIS πΈ
int mmc_regulator_get_supply (struct mmc_host *mmc );
look at her. one function, one argument, zero drama (well, ok, a little drama β see DESCRIPTION) π
π¦ ARGUMENTS π¦
mmcβ the host to regulate. that's thestruct mmc_host *bestie, the main character of this whole operation π
π DESCRIPTION π
so what does she actually return? she returns 0 or an errno. simple, right? no. because you have to handle that errno β it's either a critical error or -EPROBE_DEFER, and those are two very different situations, so don't just ignore it and hope for the best π
and here's the part that gets people every single time: 0 means no critical error, but it does NOT mean all the regulators have been found. not even close, bestie. because they're all optional. every last one. so a happy little 0 is like a "we didn't crash" not a "everything is perfect" π
so if your driver actually requires certain regulators? you have to check separately in your driver whether they got populated after calling this function. like, do your own vibe check, don't make her do it for you π
fr fr, re-read that bit. 0 β "all regulators found". it's a trap and it's lowkey iconic for how many people it catches πͺ€
π SEE ALSO π
- Kernel file
./drivers/mmc/core/regulator.c mmc_ocrbitnum_to_vdd(9)mmc_regulator_get_ocrmask(9)mmc_regulator_set_ocr(9)mmc_regulator_set_vqmmc(9)mmc_regulator_set_vqmmc2(9)mmc_regulator_register_undervoltage_notifier(9)mmc_regulator_unregister_undervoltage_notifier(9)mmc_regulator_enable_vqmmc(9)mmc_regulator_disable_vqmmc(9)
the whole regulator friend group ate, ngl β go read them all π
and that's the page!! π this cutie lives in ./drivers/mmc/core and the version notice is dated October 2026, so likeβ¦ future girl summer πΈ stay regulated, bestie, and remember: 0 is not a promise, it's a starting point β¨ππ¦
π¦ 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