pwrdm_register_pwrdms(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pwrdm_register_pwrdms(9) πŸ’–

okay bestie, so this is a page straight out of the Kernel API Manual β€” it's pwrdm_register_pwrdms(9), and honestly it's giving "small function, big responsibilities" energy. Let's get into it 🫢


✨ NAME ✨

pwrdm_register_pwrdms β€” the one where you register your SoC powerdomains πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int pwrdm_register_pwrdms (struct powerdomain **ps );

πŸŽ€ ARGUMENTS πŸŽ€

  • ps β€” a pointer to an array of struct powerdomain, like, the whole guest list of powerdomains you're about to register ✨

🌸 DESCRIPTION 🌸

So what this does: it registers all the powerdomains that are available on a particular OMAP SoC. That's the whole vibe. 🧚

The one thing you cannot skip β€” it must be called after pwrdm_register_platform_funcs. Like, that's the prerequisite, no cap. Don't be out here calling it first, it will not slay.

Good news though: it may be called multiple times. Call it once, call it five times, it's fine, it's chill. 🌈

Now for the receipts, and please memorize these returns:

  • -EACCES if you called it before pwrdm_register_platform_funcs (told you 😭)
  • -EINVAL if the argument ps is null β€” like, you gave it nothing, bestie, what did you expect
  • 0 upon success πŸ‘‘ periodt

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./arch/arm/mach-omap2/powerdomain.c β€” and here's the full bestie list, all of it, no skipping:


πŸ’€ reminder: -EACCES before pwrdm_register_platform_funcs, -EINVAL for a null ps. Those two will humble you.

and that's the page, bestie! πŸ“ this lil gem lives over in ./arch/arm/mach-omap2 and it's dated October 2026 β€” so yeah, future vibes only βœ¨πŸ’œ mwah, go register those powerdomains πŸ’…πŸŽ€

πŸ“¦ where this page comes from