mmc_regulator_get_supply(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the struct 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 🌈

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