pwrdm_read_prev_mem_pwrst(9)
Hey bestie! π So you want to peek at a powerdomain's memory bank tea? Say less, I got you π This is the pwrdm_read_prev_mem_pwrst page from the Kernel API Manual β the one and only, iconic, no cap.
β¨ NAME β¨
pwrdm_read_prev_mem_pwrst β get previous memory bank power state π«Ά
Okay so literally, this function tells you what power state a memory bank was in before β like its past vibe. Giving receipts, basically. π
πΈ SYNOPSIS πΈ
int pwrdm_read_prev_mem_pwrst(struct powerdomain *pwrdm, u8 bank);
π¦ ARGUMENTS π¦
pwrdmβ yourstruct powerdomain *, the actual powerdomain you're interrogating to get that previous memory bank power state. Like, which powerdomain are we snooping on? πbankβ the memory bank number, and it's gotta be in the range0-3. That's it. That's the whole range. Don't come at it with anything else. π
π DESCRIPTION π
So here's the deal bestie π: this returns the powerdomain pwrdm's previous memory power state for bank bank. It's giving main character energy β very "what was the vibe last time, king?"
But hold up, because there are receipts (error receipts, the dramatic kind π):
Returns-EINVALif thepwrdmpointer is null β like, you literally passed me nothing, bestie, that's a no. π
Returns -EEXIST if the target memory bank does not exist or is not controllable β so the bank you're asking about? Not a thing, or not a thing you can mess with, periodt. β
Otherwise, upon success? It returns the previous memory power state. Slay. ππ₯
β SEE ALSO β
Kernel file ./arch/arm/mach-omap2/powerdomain.c β go read it, it's the source of truth and it ate, ngl π§π
And here's the whole bestie friend group of related functions, no one left behind π :
_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_set_mem_retst(9)pwrdm_read_logic_pwrst(9)pwrdm_read_prev_logic_pwrst(9)pwrdm_read_logic_retst(9)pwrdm_read_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, you ate that reading ngl. π
Man page vibes from ./arch/arm/mach-omap2, dated October 2026 β literally so recent it's giving future icon energy π¦β¨ Love you, bye! π
π
π¦ 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