omap4_pwrdm..._logic_pwrst(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” a struct 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) 🫢


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