pwrdm_set_mem_retst(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pwrdm_set_mem_retst(9) πŸ’–

okay bestie, this is the Kernel API Manual page for pwrdm_set_mem_retst(9) β€” yes, we're doing kernel powerdomain memory retention stuff, and it's lowkey iconic. slay. Let's get into it 🫢


✨ NAME ✨

pwrdm_set_mem_retst β€” set memory power state while powerdomain in RET

🌸 SYNOPSIS 🌸

int pwrdm_set_mem_retst (struct powerdomain *pwrdm , u8 bank , u8 pwrst
);

bestie, that's the whole signature. The way it just sits there being all kernel-y… πŸŽ€

πŸŽ€ ARGUMENTS πŸŽ€

  • pwrdm β€” struct powerdomain * to set.
  • bank β€” memory bank number to set (0-3).
  • pwrst β€” one of the PWRDM_POWER_* macros.

πŸ¦‹ DESCRIPTION πŸ¦‹

Set the next power state pwrst that memory bank bank of the powerdomain pwrdm will enter when the powerdomain enters the RETENTION state.

bank will be a number from 0 to 3, and represents different types of memory, depending on the powerdomain. pwrst will be either RETENTION or OFF, if supported.

The vibe check on return values, no cap:

  • -EINVAL β€” returns if the powerdomain pointer is null or the target power state is not supported for this memory bank.
  • -EEXIST β€” returns if the target memory bank does not exist or is not controllable.
  • 0 β€” returns upon success.

🌈 SEE ALSO 🌈

Here's the whole friend group:


that's the whole page, bestie πŸ’… it lives under ./arch/arm/mach-omap2, dated October 2026, and yes it's still the pwrdm_set_mem_retst(9) manual. periodt. byeeee 🫢✨

πŸ“¦ where this page comes from