pwrdm_read_prev_logic_pwrst(9)
π pwrdm_read_prev_logic_pwrst π
okay so this is a page from the Kernel API Manual (yes, the kernel has lore fr) and it's about peeking at a powerdomain's previous logic power state. tiny function, big "what did you just do" energy.
β¨ NAME β¨
pwrdm_read_prev_logic_pwrst β get previous powerdomain logic power state
like, literally just: what logic power state was this powerdomain in before? that's the whole vibe check π«Ά
πΈ SYNOPSIS πΈ
int pwrdm_read_prev_logic_pwrst (struct powerdomain *pwrdm );
one function, one argument, returns an int. minimal. iconic. π
π¦ DESCRIPTION π¦
so here's the tea bestie: this returns the powerdomain pwrdm's previous logic power state. that's it, that's the whole function.
and the failure mode is very demure, very mindful:
- if the powerdomain pointer is null, you get
-EINVALback π - if it's all good, you get the previous logic power state upon success β¨
ngl, passing a nullpwrdmhere is not the moment β-EINVALis the polite way of saying "bestie, no."
π ARGUMENTS π
pwrdmβ astruct powerdomain *pointing at the powerdomain you wanna get the previous logic power state for. that's the one (and only) thing you hand over π
π SEE ALSO π
the whole squad lives in the kernel file ./arch/arm/mach-omap2/powerdomain.c and here they all are, no cap, every single one:
_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_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)
no gatekeeping here, we link everything π«Άβ¨
and that's the page!! this one shipped out of ./arch/arm/mach-omap2 back in October 2026, and the manual is gonna keep telling everyone it's pwrdm_read_prev_logic_pwrst(9) forever. slay ππ
π¦ 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