omap_voltage_get_voltdata(9)
π omap_voltage_get_voltdata β Kernel API Manual β¨
okay bestie, so this one lives in the Kernel API Manual, and it's literally the little lookup goblin for OMAP voltages π§
πΈ NAME πΈ
omap_voltage_get_voltdata β the API that gets you the voltage table entry for a particular voltage π
β¨ SYNOPSIS β¨
struct omap_volt_data * omap_voltage_get_voltdata (struct voltagedomain
*voltdm , unsigned long volt );
like, that's the whole vibe. she takes two things and hands you back a pointer π
π¦ ARGUMENTS π¦
voltdmβ pointer to the VDD whose voltage table has to be searched π you're telling her which table to go digging involtβ the voltage to be searched in the voltage table π the actual number you're hunting for
π DESCRIPTION π
so here's the tea π this API searches through the voltage table for the required voltage domain and tries to find a matching entry for the passed voltage volt. If a matching entry is found, volt_data is populated with that entry β like, she found it and she's handing it over π«Ά
β οΈ important caveat bestie: this API searches only through the non-compensated voltages in the voltage table. no cap, that's the whole scope. don't go expecting compensated stuff in there π
Returns a pointer to the voltage table entry corresponding to volt on success π₯
Returns -ENODATA if no voltage table exists for the passed voltage domain, or if there is no matching entry π (yes, both of those give you the same error, she's not gonna elaborate further)
π SEE ALSO π
Kernel file ./arch/arm/mach-omap2/voltage.c plus the whole friend group:
voltdm_get_voltage(9)voltdm_scale(9)voltdm_reset(9)omap_voltage_get_volttable(9)omap_voltage_register_pmic(9)omap_voltage_late_init(9)voltdm_lookup(9)voltdm_init(9)
aaaand that's the page, bestie π this icon dropped under ./arch/arm/mach-omap2 in October 2026 β go forth and look up those voltages, ilysm πβ¨
π¦ 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