dev_pm_opp_disable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

Welcome to dev_pm_opp_disable(9) from the Kernel API Manual, bestie! This page is here to explain disabling a specific OPP.

dev_pm_opp_disable β€” Disable a specific OPP


🌸 SYNOPSIS 🌸

int dev_pm_opp_disable (struct device *dev , unsigned long freq );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” device for which we do this operation
  • freq β€” OPP frequency to disable

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this disables a provided opp. If the operation is valid, this returns 0, else the corresponding error value. It is meant to be a temporary control by users to make this OPP not available until the circumstances are right to make it available again (with a call to dev_pm_opp_enable).

Like, it’s giving temporary switch-off energy, not permanent-delete energy. Keep that in mind, bestie. πŸ’–


πŸ”₯ RETURN πŸ”₯

  • -EINVAL β€” for bad pointers
  • -ENOMEM β€” if no memory available for the copy operation
  • 0 β€” returns 0 if no modification was done OR modification was successful

πŸ’– SEE ALSO πŸ’–

Kernel file ./drivers/opp/core.c and these iconic friends:


That’s the whole page, bestie. This gem lives in the Kernel API Manual, comes from ./drivers/opp, and is dated October 2026 β€” signed with a little πŸ’‹ by dev_pm_opp_disable(9). 🫢✨

πŸ“¦ where this page comes from