pwrdm_read_mem_pwrst(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pwrdm_read_mem_pwrst(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this one's all about peeking at the current memory bank power state β€” no cap, it's a tiny little reader function and she serves πŸŽ€


🌸 NAME 🌸

pwrdm_read_mem_pwrst β€” get current memory bank power state πŸ’…


✨ SYNOPSIS ✨

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

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pwrdm β€” your struct powerdomain *, aka the powerdomain you're snooping on to get its current memory bank power state 🫢
  • bank β€” the memory bank number, and it's 0-3, that's the whole vibe check right there πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

So the way this works: it returns the powerdomain pwrdm's current memory power state for bank bank. literally that's it, that's the whole job πŸ’…

Now for the error girlies 😭 β€” it returns -EINVAL if the powerdomain pointer is null (like, bestie, you gave me nothing), and -EEXIST if the target memory bank does not exist or is not controllable (that bank is not on the roster, periodt). On success it just returns the current memory power state. slay ✨


🌈 SEE ALSO 🌈

Kernel file ./arch/arm/mach-omap2/powerdomain.c β€” and here's the whole friend group, all of them, no one left out 🫢:


okay that's the page!! πŸŽ€ this one lives in ./arch/arm/mach-omap2 and the version/date situation is October 2026 β€” mwah πŸ’‹ go read a powerdomain, ily, bye πŸ¦‹πŸ’–

πŸ“¦ where this page comes from