pwrdm_set_mem_retst(9)
π 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 thePWRDM_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:
- Kernel file:
./arch/arm/mach-omap2/powerdomain.c _pwrdm_register(9)_pwrdm_save_clkdm_state_and_activate(9)_pwrdm_restore_clkdm_state(9)pwrdm_register_platform_funcs(9)pwrdm_register_pwrdms(9)pwrdm_complete_init(9)pwrdm_lock(9)pwrdm_unlock(9)pwrdm_lookup(9)pwrdm_for_each(9)pwrdm_add_clkdm(9)pwrdm_get_mem_bank_count(9)pwrdm_set_next_pwrst(9)pwrdm_read_next_pwrst(9)pwrdm_read_pwrst(9)pwrdm_read_prev_pwrst(9)pwrdm_set_logic_retst(9)pwrdm_set_mem_onst(9)pwrdm_read_logic_pwrst(9)pwrdm_read_prev_logic_pwrst(9)pwrdm_read_logic_retst(9)pwrdm_read_mem_pwrst(9)pwrdm_read_prev_mem_pwrst(9)pwrdm_read_mem_retst(9)pwrdm_clear_all_prev_pwrst(9)pwrdm_enable_hdwr_sar(9)pwrdm_disable_hdwr_sar(9)pwrdm_has_hdwr_sar(9)pwrdm_get_valid_lp_state(9)omap_set_pwrdm_state(9)pwrdm_save_context(9)pwrdm_restore_context(9)
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
- 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