pwrdm_read_prev_mem_pwrst(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Hey bestie! πŸ‘‹ So you want to peek at a powerdomain's memory bank tea? Say less, I got you πŸ’– This is the pwrdm_read_prev_mem_pwrst page from the Kernel API Manual β€” the one and only, iconic, no cap.


✨ NAME ✨

pwrdm_read_prev_mem_pwrst β€” get previous memory bank power state 🫢

Okay so literally, this function tells you what power state a memory bank was in before β€” like its past vibe. Giving receipts, basically. πŸ’…


🌸 SYNOPSIS 🌸

int pwrdm_read_prev_mem_pwrst(struct powerdomain *pwrdm, u8 bank);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pwrdm β€” your struct powerdomain *, the actual powerdomain you're interrogating to get that previous memory bank power state. Like, which powerdomain are we snooping on? πŸ‘€
  • bank β€” the memory bank number, and it's gotta be in the range 0-3. That's it. That's the whole range. Don't come at it with anything else. πŸ™ˆ

πŸŽ€ DESCRIPTION πŸŽ€

So here's the deal bestie 🌈: this returns the powerdomain pwrdm's previous memory power state for bank bank. It's giving main character energy β€” very "what was the vibe last time, king?"

But hold up, because there are receipts (error receipts, the dramatic kind πŸ’€):

Returns -EINVAL if the pwrdm pointer is null β€” like, you literally passed me nothing, bestie, that's a no. πŸ’€
Returns -EEXIST if the target memory bank does not exist or is not controllable β€” so the bank you're asking about? Not a thing, or not a thing you can mess with, periodt. βœ‹

Otherwise, upon success? It returns the previous memory power state. Slay. πŸŽ‰πŸ”₯


⭐ SEE ALSO ⭐

Kernel file ./arch/arm/mach-omap2/powerdomain.c β€” go read it, it's the source of truth and it ate, ngl πŸ§šπŸ’œ

And here's the whole bestie friend group of related functions, no one left behind πŸ’…:


That's the whole page bestie, you ate that reading ngl. πŸ’–

Man page vibes from ./arch/arm/mach-omap2, dated October 2026 β€” literally so recent it's giving future icon energy πŸ¦‹βœ¨ Love you, bye! πŸ’…πŸŽ€

πŸ“¦ where this page comes from