omap4_pwrdm...ev_mem_pwrst(9)
π omap4_pwrdm...ev_mem_pwrst(9) π
okay so bestie, we're in the Kernel API Manual today, and this page is literally about omap4_pwrdm_read_prev_mem_pwrst β say that five times fast, i dare you π«Ά
β¨ NAME β¨
omap4_pwrdm_read_prev_mem_pwrst β reads the previous memory powerstate
like, it goes and finds out what the memory powerstate was before. nostalgia but for hardware π
πΈ SYNOPSIS πΈ
int omap4_pwrdm_read_prev_mem_pwrst (struct powerdomain *pwrdm , u8 bank
);
so it returns an int, takes a struct powerdomain *pwrdm, and a u8 bank. that's the whole vibe check β¨
π ARGUMENTS π
pwrdmβ astruct powerdomain *that you wanna read the mem powerstate for. it's giving "point me at the domain, bestie" πbankβ the memory bank index. yes queen, you gotta say which bank π¦
π¦ DESCRIPTION π¦
so here's the tea β β this function reads the previous memory powerstate for a powerdomain. but it's not just a straight lookup, okay? it has layers. main character energy fr fr.
to figure out the previous memory powerstate, it first checks the previous powerstate for the domain. then:
- if that previous state was
OFFβ oop, the logic has been lost π - if the previous state was
RETENTION, then it reads the setting for the next memory retention state to see the actual value. detective work, we love to see it π - in every other case, the logic is retained. slay π
and it returns either PWRDM_POWER_OFF or PWRDM_POWER_RET, depending on whether the logic was retained or not. two outcomes, no in-between, periodt β¨
π SEE ALSO π
the kernel file for this one is literally:
./arch/arm/mach-omap2/prm44xx.c
and here's the whole friend group, all together, no cap π«Ά
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_logic_pwrst(9)omap4_pwrdm_save_context(9)omap4_pwrdm_restore_context(9)
ngl bestie, if you're reading this at 3am debugging power domains, drink some water and take a lil break π
and that's the page!! π it lives over in ./arch/arm/mach-omap2, dated October 2026, and it's filed under omap4_pwrdm...ev_mem_pwrst(9) in the Kernel API Manual β mwah, go read your kernel source, ily, 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