omap4_pwrdm..._logic_pwrst(9)
π omap4_pwrdm..._logic_pwrst(9) π
okay so this is a page straight out of the Kernel API Manual bestie, and honestly? it's giving niche-but-iconic. we're in the OMAP4 power domain trenches today π«Ά
β¨ NAME β¨
omap4_pwrdm_read_prev_logic_pwrst β read the previous logic powerstate π₯ (yes that's the whole job, and she does it well)
πΈ SYNOPSIS πΈ
int omap4_pwrdm_read_prev_logic_pwrst (struct powerdomain *pwrdm );
literally the whole signature, no notes π
π ARGUMENTS π
pwrdmβ astruct powerdomain *, like, the powerdomain you want to read the state for. that's the one. hand her over π
π¦ DESCRIPTION π¦
so here's the tea β β this function reads the previous logic powerstate for a powerdomain. but bestie, she can't just look it up, she has to do detective work first π
the way that she works: she first checks the previous powerstate for the domain. that's step one, no skipping.
- if that previous state was
OFF, then the logic has been lost π rip - if the previous state was
RETENTION, she goes and reads the setting for the next retention logic state to see the actual value π (iykyk, that's the whole trick) - in every other case, the logic is retained β¨
and she returns either PWRDM_POWER_OFF or PWRDM_POWER_RET, depending on whether the logic was retained or not. main character return value energy, fr fr π
π SEE ALSO π
the kernel file we're living in:
./arch/arm/mach-omap2/prm44xx.c
and her whole friend group (they're all linked, they all say hi) π«Ά
omap44xx_prm_read_pending_irqs(9)omap44xx_prm_ocp_barrier(9)omap44xx_prm_save_and_clear_irqen(9)omap44xx_prm_restore_irqen(9)omap44xx_prm_reconfigure_io_chain(9)omap44xx_prm_enable_io_wakeup(9)omap44xx_prm_read_reset_sources(9)omap44xx_prm_was_any_context_lost_old(9)omap44xx_prm_clear_context_loss_flags_old(9)omap4_pwrdm_read_prev_mem_pwrst(9)omap4_pwrdm_save_context(9)omap4_pwrdm_restore_context(9)
ngl the other pwrdm girlies are the ones who save and restore context β this one just reads the previous logic powerstate. know your role and slay it π
and that's the whole page bestie!! π brought to you by the fine folks living in ./arch/arm/mach-omap2, dated October 2026, filed under omap4_pwrdm..._logic_pwrst(9) β mwah, stan her, periodt πππ¦
π¦ 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