mmc_of_parse_voltage(9)
β¨ mmc_of_parse_voltage(9) β¨
okay so bestie, welcome to the Kernel API Manual β this is the whole vibe on mmc_of_parse_voltage, and honestly? it's giving "small function, big responsibility" π
πΈ NAME πΈ
mmc_of_parse_voltage β return mask of supported voltages
π¦ SYNOPSIS π¦
int mmc_of_parse_voltage (struct mmc_host *host , u32 *mask );
π ARGUMENTS π
hostβ the host whose properties should be parsed. yes, that host π«Άmaskβ mask of voltages available for MMC/SD/SDIO β¨
π DESCRIPTION π
So here's the tea β β this function parses the "voltage-ranges" property. That's literally its whole main character moment.
And it returns one of three things, no cap:
- zero β if the property is not found π
- a negative errno β if the voltage-range specification is invalid π
- one β if the voltage-range is specified and successfully parsed π
like, it ate and left no crumbs. three exits, all accounted for, fr fr.
π₯ SEE ALSO π₯
Kernel file ./drivers/mmc/core/host.c β and while you're in the neighborhood, go say hi to these icons π:
mmc_retune_enable(9)mmc_retune_disable(9)mmc_of_parse(9)mmc_first_nonreserved_index(9)mmc_alloc_host(9)mmc_add_host(9)mmc_remove_host(9)mmc_free_host(9)
okay that's the whole page bestie, go forth and parse those voltage ranges responsibly π§π
source: ./drivers/mmc/core Β· dated: October 2026 Β· and that's the sign-off, mwah π slay
π¦ 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