pwrdm_read_prev_logic_pwrst(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 -EINVAL back 😭
  • if it's all good, you get the previous logic power state upon success ✨
ngl, passing a null pwrdm here is not the moment β€” -EINVAL is the polite way of saying "bestie, no."

πŸŽ€ ARGUMENTS πŸŽ€

  • pwrdm β€” a struct 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:

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