STRUCT DEV_PM_OPP_KEY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, we're in the Kernel API Manual, and this page is struct dev_pm_opp_key(9) β€” literally the key used to identify OPP entries. It's giving tiny-but-powerful lookup icon energy. πŸ‘‘

✨ SYNOPSIS ✨

       struct dev_pm_opp_key {
           unsigned long freq;
           unsigned int level;
           u32 bw;
        };

🫢 Members 🫢

these are the three fields, and yes, they all matter:

  • freq β€” Frequency in Hz. Use 0 if frequency is not to be matched. zero means "don't check this one," periodt. πŸ’…
  • level β€” Performance level associated with the OPP entry. Use OPP_LEVEL_UNSET if level is not to be matched. that sentinel is the "ignore me" flag for level. πŸŽ€
  • bw β€” Bandwidth associated with the OPP entry. Use 0 if bandwidth is not to be matched. again, zero = skip matching on bandwidth. ✨

πŸ’– Description πŸ’–

bestie, this struct is how you uniquely identify an OPP entry based on frequency, performance level, and bandwidth. The glow-up? Each field can be selectively ignored during matching by setting it to its respective NOP value. So you can match on all three, or vibe-check just the ones you care about β€” but yeah, NOP value is the move for "skip this field." πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

go peek at these, iykyk:

  • Kernel file ./include/linux/pm_opp.h
  • struct dev_pm_opp_supply(9)
  • struct dev_pm_opp_config(9)
  • struct dev_pm_opp_data(9)

xoxo, from ./include/linux β€” October 2026 β€” struct dev_pm_opp_key(9) πŸ’–βœ¨

πŸ“¦ where this page comes from