_store_optimized_voltages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ _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:

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