STRUCT DEV_PM_OPP_KEY(9)
πΈ 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. Use0if frequency is not to be matched. zero means "don't check this one," periodt. πlevelβ Performance level associated with the OPP entry. UseOPP_LEVEL_UNSETif level is not to be matched. that sentinel is the "ignore me" flag for level. πbwβ Bandwidth associated with the OPP entry. Use0if 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
- 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