pwrdm_read_logic_pwrst(9)
π pwrdm_read_logic_pwrst π
okay so this is a page from the Kernel API Manual (yes, the pwrdm_read_logic_pwrst(9) one, bestie, you're in the right place π«Ά) and it's literally about peeking at what a powerdomain's logic chunk is gonna do when it goes into retention. tiny function, big main character energy. let's get into it β¨
β¨ NAME β¨
pwrdm_read_logic_pwrst β get current powerdomain logic retention power state πΈ
like, the current one. not the next one, not the previous one. we're living in the now, periodt.
π¦ SYNOPSIS π¦
int pwrdm_read_logic_pwrst (struct powerdomain *pwrdm );
that's it. one argument. she's lowkey minimal and we respect that π
π ARGUMENTS π
pwrdmβ astruct powerdomain *, and it's the thing you're passing in to get the current logic retention power state for. yes bestie it's a pointer to astruct powerdomain. no we are not overthinking it. π§
π DESCRIPTION π
so here's the tea β β this function returns the power state that the logic portion of the powerdomain pwrdm is gonna enter whenever that powerdomain enters retention. that's the vibe. that's the whole job.
and check the error handling because she's responsible:
- if the powerdomain pointer is null β returns
-EINVALπ (like, girl, you gave her nothing) - upon success β returns the logic retention power state π
that's it. no cap. iconic behaviour, honestly. β
π SEE ALSO π
everything's in the kernel file ./arch/arm/mach-omap2/powerdomain.c, and there are so many siblings, it's giving huge family reunion ππ:
_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_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)
iykyk π go read them, they're all slaying in their own way π
π«Ά tiny reminder bestie: this whole thing lives under ./arch/arm/mach-omap2, it's dated October 2026, and it's brought to you by the Kernel API Manual. that's the source, that's the version, that's the date β write it down or whatever πβ¨π
π¦ 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