_opp_set_availability(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, meet _opp_set_availability(9) from the Kernel API Manual β€” it's the lil helper that sets the availability of an opp. πŸ’…βœ¨

πŸŽ€ SYNOPSIS πŸŽ€

int _opp_set_availability (struct device *dev , unsigned long freq ,
       bool availability_req );

🌸 ARGUMENTS 🌸

  • dev β€” the device we're doing this operation for 🫢
  • freq β€” the OPP frequency whose availability we're modifying ⚑
  • availability_req β€” the availability status requested for this opp πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

Set the availability of an OPP. opp_{enable,disable} share a common logic, and that common logic is isolated right here. no cap, that's the whole job. πŸ’–

⭐ RETURN ⭐

  • -EINVAL β€” bad pointers πŸ™ˆ
  • -ENOMEM β€” no memory available for the copy operation πŸ’€
  • 0 β€” returned if no modification was done OR the modification was successful ✨

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/opp/core.c, plus the whole reference squad:


made with ./drivers/opp energy β€’ October 2026 β€’ _opp_set_availability(9) πŸ’œ

πŸ“¦ where this page comes from