_get_optimal_vdd_voltage(9)
π _get_optimal_vdd_voltage(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a lil function called _get_optimal_vdd_voltage, and ngl the name kinda eats β it's literally out here finding the optimal voltage for the supply π₯
πΈ NAME πΈ
_get_optimal_vdd_voltage β finds optimal voltage for the supply π
Like. That's the whole vibe. It looks at stuff and goes "hmm yes, this voltage is the moment." π
β¨ SYNOPSIS β¨
int _get_optimal_vdd_voltage (struct device *dev , struct
ti_opp_supply_data *data , int reference_uv );
three args, one int back, classic. no cap. π«Ά
π¦ ARGUMENTS π¦
devβ the device we need to find info for π like, whose voltage are we optimizing here? this one. main character device energy fr fr.dataβ data specific to the device π the lil personalized info bundle that belongs to that device, iykyk.reference_uvβ the reference voltage (OPP voltage) π this is the voltage we need a value for β the starting point, the blueprint, the "what would this be if we weren't being fancy" number.
β RETURN β
so here's the tea β if a match is found, it returns the optimized voltage β slay. but if there's no match, it just returns reference_uv. and also β also β if no optimization is even needed, it returns reference_uv too. so basically reference_uv is the fallback bestie and it never leaves the group chat ππ«Ά
π SEE ALSO π
- Kernel file
./drivers/opp/ti-opp-supply.cπ§ - struct
ti_opp_supply_optimum_voltage_table(9) - struct
ti_opp_supply_data(9) - struct
ti_opp_supply_of_data(9) _store_optimized_voltages(9)_free_optimized_voltages(9)
go read those if you wanna go deeper, they're all linked up like a little friend group π
just a reminder bestie β everything above is exactly what the page says, I'm not out here inventing new behavior for you π read the actual source before you ship, mkay? π
and that's the page!! π filed under ./drivers/opp, dated October 2026, living its best life in the Kernel API Manual as _get_optimal_vdd_voltage(9). bye bestie, go optimize something gorgeous πβ¨πΈ
π¦ 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