mmc_ocrbitnum_to_vdd(9)
π mmc_ocrbitnum_to_vdd π
okay so bestie, welcome to the Kernel API Manual corner where we translate one lil OCR bit number into its voltage vibe. This is mmc_ocrbitnum_to_vdd(9), and itβs giving βsmall helper, big regulator energyβ β¨.
πΈ NAME πΈ
mmc_ocrbitnum_to_vdd β convert a OCR bit number to its voltage π
β¨ SYNOPSIS β¨
int mmc_ocrbitnum_to_vdd (int vdd_bit , int *min_uV , int *max_uV );
π ARGUMENTS π
vdd_bitβ the OCR bit number, aka the lil number weβre converting.min_uVβ minimum voltage value (mV) π«Άmax_uVβ maximum voltage value (mV) π«Ά
π¦ DESCRIPTION π¦
So like, this function returns the voltage range according to the provided OCR bit number. Thatβs the whole assignment, no cap. If conversion is not possible, a negative errno value is returned π β so watch for that negative signal instead of a happy voltage range.
π₯ SEE ALSO π₯
Kernel file ./drivers/mmc/core/regulator.c is where the lore lives, and hereβs the whole bestie lineup:
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_get_supply(9)mmc_regulator_enable_vqmmc(9)mmc_regulator_disable_vqmmc(9)
and thatβs the whole page, bestie π β signed off from ./drivers/mmc/core, dated October 2026, and obvi titled mmc_ocrbitnum_to_vdd(9) πβ¨
π¦ 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