dev_pm_opp_x...rmance_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dev_pm_opp_xlate_performance_state β€” the Kernel API Manual, bestie edition πŸŽ€

okay so real talk, the header got chopped on this one (it's giving dev_pm_opp_x...rmance_state(9), iconic truncation honestly πŸ™ˆ), but the full name is dev_pm_opp_xlate_performance_state and yes we're translating performance states today. it lives in the Kernel API Manual btw, section 9, iykyk ✨


🌸 NAME 🌸

dev_pm_opp_xlate_performance_state β€” find the required OPP's pstate for src_table. that's the whole mission, no cap 🫢


✨ SYNOPSIS ✨

int dev_pm_opp_xlate_performance_state (struct opp_table *src_table ,
struct opp_table *dst_table , unsigned int pstate );

look at that signature, it ate πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • src_table β€” the OPP table that has dst_table as one of its required OPP tables. main character table, fr.
  • dst_table β€” the required OPP table of the src_table. it's the plus-one 🌈
  • pstate β€” the current performance state of src_table. currently the vibe we're working with ⭐

πŸ’– DESCRIPTION πŸ’–

okay so what this bad boy does: it returns the pstate of the OPP (the one hanging out in dst_table) that's pointed out by the "required-opps" property of the OPP (the one living in src_table) which has its performance state set to pstate.

literally it's matchmaking: you give it a pstate from src_table, it follows the "required-opps" breadcrumb, and hands you back the matching pstate over in dst_table. lowkey obsessed with it 😭✨


πŸ”₯ RETURN πŸ”₯

  • Zero or positive performance state on success β€” slay πŸŽ‰
  • negative value on errors β€” πŸ’€ (that's the failure path, handle it pls, don't just ignore it)

πŸ‘‘ SEE ALSO πŸ‘‘

bestie, the whole OPP friend group showed up for this one, and every single one of them is linked. no gatekeeping 🫢 all of these live in the kernel file ./drivers/opp/core.c:


ngl the manpage name is literally truncated in the official header (dev_pm_opp_x...rmance_state(9)) β€” that's not me being lazy, that's just how it ships πŸ’€

and that's the page! source is ./drivers/opp, dated October 2026, and the whole thing is filed under dev_pm_opp_x...rmance_state(9) πŸ’œ bye bestie, go translate some pstates βœ¨πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from