pwrdm_set_next_pwrst(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ pwrdm_set_next_pwrst ✨

okay bestie, welcome to the Kernel API Manual entry for pwrdm_set_next_pwrst(9) β€” yes that (9) means it's a kernel thing, she's fancy πŸ’…


🌸 NAME 🌸

pwrdm_set_next_pwrst β€” set next powerdomain power state πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int pwrdm_set_next_pwrst (struct powerdomain *pwrdm , u8 pwrst );

πŸ’– ARGUMENTS πŸ’–

  • pwrdm β€” the struct powerdomain * you're setting, like, the actual powerdomain bestie in question ✨
  • pwrst β€” one of the PWRDM_POWER_* macros πŸ‘‘

🫢 DESCRIPTION 🫢

So what this does is: it sets the next power state of the powerdomain pwrdm to pwrst. That's the whole vibe. πŸŽ€

But like β€” heads up β€” the powerdomain may not enter this state immediately if the preconditions for this state have not been satisfied. No cap, she'll wait until the prerequisites are met before actually sliding into that power state πŸ’…

Return value tea β˜•:

  • returns -EINVAL if the powerdomain pointer is null, OR if the power state is invalid for the powerdomain 😭
  • returns 0 upon success 🌈⭐

🧚 SEE ALSO 🧚

Kernel file ./arch/arm/mach-omap2/powerdomain.c, plus literally the entire powerdomain friend group πŸ’œ:


and that's the page, bestie β€” no more, no less, don't @ me πŸ™ˆ

k so like, sign-off time 🌸 β€” this lil masterpiece lives in ./arch/arm/mach-omap2, dated October 2026, and it's pwrdm_set_next_pwrst(9) in the Kernel API Manual. slay, go set some next power states πŸ’…βœ¨πŸ‘‘

πŸ“¦ where this page comes from