_store_optimized_voltages(9)
β¨ _store_optimized_voltages(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a little function living its best life in the kernel, and honestly? it's giving "quietly important." let's get into it π«Ά
πΈ NAME πΈ
_store_optimized_voltages β store optimized voltages π₯
like, the whole name is literally the job. no cap.
π SYNOPSIS π
int _store_optimized_voltages (struct device *dev , struct
ti_opp_supply_data *data );
two args, one int coming back at ya. that's the whole vibe β¨
π¦ ARGUMENTS π¦
devβ the ti opp supply device for which we need to store info, iykyk. it's the device in question, the main character of this call πdataβ data specific to the device π like, the device's own lil info bundle
π DESCRIPTION π
so what does it actually do? it picks up efuse based optimized voltages for VDD that are unique per device π§ and then it stores them in an internal data structure so they're ready to go during transition requests. literally prepping ahead of time, which is such a slay of a design honestly β¨
per-device voltages >>> one-size-fits-all voltages, fr fr π
β RETURN β
if it works? 0 π iconic, flawless, no notes.
otherwise it hands back the appropriate error value π so like, check your return value bestie, don't just assume.
π SEE ALSO π
kernel file ./drivers/opp/ti-opp-supply.c β and the whole friend group:
struct ti_opp_supply_optimum_voltage_table(9)struct ti_opp_supply_data(9)struct ti_opp_supply_of_data(9)_free_optimized_voltages(9)_get_optimal_vdd_voltage(9)
go read them, they're all connected, it's a whole ecosystem ππΈ
heads up bestie: everything above lives in ./drivers/opp β that's the source/version situation β and this page is dated October 2026, so mark your calendar π
and that's the page!! _store_optimized_voltages(9), done and dusted, ate and left no crumbs ππ
π¦ 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