pwrdm_read_pwrst(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pwrdm_read_pwrst(9) πŸ’–

Okay so welcome to the Kernel API Manual, bestie β€” this page is literally all about getting the current powerdomain power state, and it’s giving main character energy ngl ✨


🌸 NAME 🌸

pwrdm_read_pwrst β€” get current powerdomain power state 🫢


πŸŽ€ SYNOPSIS πŸŽ€

int pwrdm_read_pwrst (struct powerdomain *pwrdm );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pwrdm β€” the struct powerdomain * to get power state, periodt πŸ’…

✨ DESCRIPTION ✨

So this one returns the current power state of the powerdomain pwrdm, and that’s the whole vibe check πŸ”₯

It returns -EINVAL if the powerdomain pointer is null, or it returns the current power state upon success. Lowkey important: if the power domain only supports the ON state, then it just returns ON as the current state. No cap 🧚


🌈 SEE ALSO 🌈

Kernel file: ./arch/arm/mach-omap2/powerdomain.c

The related-function squad, fr fr:


mwah πŸ’‹ this icon is from ./arch/arm/mach-omap2, dated October 2026, and it’s pwrdm_read_pwrst(9) β€” slay, bye πŸ‘‘

πŸ“¦ where this page comes from