mmc_regulator_get_ocrmask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

mmc_regulator_get_ocrmask(9)

okay so this page is from the Kernel API Manual β€” welcome to the voltage-mask lore, bestie πŸ’–

✨ NAME ✨

mmc_regulator_get_ocrmask β€” return mask of supported voltages πŸŽ€

πŸ’… SYNOPSIS πŸ’…

int mmc_regulator_get_ocrmask (struct regulator *supply );

πŸŽ€ ARGUMENTS πŸŽ€

  • supply β€” regulator to use. That's the one, bestie 🌸

πŸ¦‹ DESCRIPTION πŸ¦‹

So this function returns either a negative errno or a mask of voltages that can be provided to MMC/SD/SDIO devices using the specified voltage regulator. It's literally giving "which voltages can we feed this thing" energy ✨

This would normally be called before registering the MMC host adapter β€” like, get the voltage tea sorted first, iykyk 🫢

πŸ”₯ SEE ALSO πŸ”₯

The kernel file ./drivers/mmc/core/regulator.c is right there, and these linked besties are iconic:


xoxo, your kernel bestie πŸ’… β€” source/date check: ./drivers/mmc/core, October 2026, page mmc_regulator_get_ocrmask(9) πŸ¦‹

πŸ“¦ where this page comes from