mmc_regulator_set_ocr(9)
Bestie, welcome to mmc_regulator_set_ocr(9) β this is the Kernel API Manual page, and we're folding that manual name in right here so nobody has to copy the header line. Periodt. π
β¨
β¨ NAME β¨
mmc_regulator_set_ocr β set regulator to match host->ios voltage π
πΈ SYNOPSIS πΈ
int mmc_regulator_set_ocr (struct mmc_host *mmc , struct regulator
*supply , unsigned short vdd_bit );
π ARGUMENTS π
Here's the cast, no cap:
mmcβ the host to regulate πsupplyβ regulator to use πvdd_bitβ zero for power off, else a bit number (host->ios.vdd) β‘
π¦ DESCRIPTION π¦
Returns zero on success, else negative errno. That's literally it β success is a cute little zero, and failure throws you a negative errno. π
MMC host drivers may use this to enable or disable a regulator using a particular supply voltage. This would normally be called from the set_ios method. It's giving power-management main character energy, fr fr. π₯
π SEE ALSO π
Go hang out with these other pages, iykyk:
- Kernel file
./drivers/mmc/core/regulator.cπ mmc_ocrbitnum_to_vdd(9)mmc_regulator_get_ocrmask(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_get_supply(9)mmc_regulator_enable_vqmmc(9)mmc_regulator_disable_vqmmc(9)
Cute sign-off time π«Ά: this page's source/version tag is ./drivers/mmc/core, and the date on it is October 2026. Bye bestie, go regulate something iconic ππ§β
π¦ 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