pwrdm_set_mem_onst(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pwrdm_set_mem_onst πŸ’–

okay bestie, welcome to the Kernel API Manual ✨ this one's called pwrdm_set_mem_onst(9) and it's literally the glow-up planner for your memory power states 🫢


🌸 NAME 🌸

pwrdm_set_mem_onst β€” set memory power state while powerdomain ON πŸ’…


✨ SYNOPSIS ✨

int pwrdm_set_mem_onst (struct powerdomain *pwrdm , u8 bank , u8 pwrst
);

πŸŽ€ ARGUMENTS πŸŽ€

  • pwrdm β€” the struct powerdomain * you wanna set, bestie. that's the whole vibe target 🎯
  • bank β€” the memory bank number to set, and it's 0-3 (yes, only four of them, iconic range tbh) πŸ”’
  • pwrst β€” one of the PWRDM_POWER_* macros. pick your state, queen πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so what this actually does: it sets the next power state pwrst that memory bank bank of the powerdomain pwrdm will enter when the powerdomain enters the ON state. the way that works is, bank is a number from 0 to 3, and it represents different types of memory depending on the powerdomain β€” so like, same number, different meaning, iykyk 🧚

ngl the returns here matter, so pay attention: it returns -EINVAL if the powerdomain pointer is null or the target power state isn't supported for this memory bank. it returns -EEXIST if the target memory bank doesn't exist or isn't controllable (rude, but okay). and it returns 0 upon success β€” slay πŸ’–

🌈 SEE ALSO 🌈

the kernel file ./arch/arm/mach-omap2/powerdomain.c and honestly the whole friend group:


that's the whole page, no cap πŸ’… and like any good group chat, it's got a sign-off: this one lives down in ./arch/arm/mach-omap2, dated October 2026, manual name pwrdm_set_mem_onst(9) β€” periodt πŸŽ€πŸ’œ

πŸ“¦ where this page comes from