pwrdm_register_pwrdms(9)
π 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 ofstruct 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:
-EACCESif you called it beforepwrdm_register_platform_funcs(told you π)-EINVALif the argumentpsis null β like, you gave it nothing, bestie, what did you expect0upon success π periodt
π₯ SEE ALSO π₯
Kernel file ./arch/arm/mach-omap2/powerdomain.c β and here's the full bestie list, all of it, no skipping:
_pwrdm_register(9)_pwrdm_save_clkdm_state_and_activate(9)_pwrdm_restore_clkdm_state(9)pwrdm_register_platform_funcs(9)pwrdm_complete_init(9)pwrdm_lock(9)pwrdm_unlock(9)pwrdm_lookup(9)pwrdm_for_each(9)pwrdm_add_clkdm(9)pwrdm_get_mem_bank_count(9)pwrdm_set_next_pwrst(9)pwrdm_read_next_pwrst(9)pwrdm_read_pwrst(9)pwrdm_read_prev_pwrst(9)pwrdm_set_logic_retst(9)pwrdm_set_mem_onst(9)pwrdm_set_mem_retst(9)pwrdm_read_logic_pwrst(9)pwrdm_read_prev_logic_pwrst(9)pwrdm_read_logic_retst(9)pwrdm_read_mem_pwrst(9)pwrdm_read_prev_mem_pwrst(9)pwrdm_read_mem_retst(9)pwrdm_clear_all_prev_pwrst(9)pwrdm_enable_hdwr_sar(9)pwrdm_disable_hdwr_sar(9)pwrdm_has_hdwr_sar(9)pwrdm_get_valid_lp_state(9)omap_set_pwrdm_state(9)pwrdm_save_context(9)pwrdm_restore_context(9)
π reminder:-EACCESbeforepwrdm_register_platform_funcs,-EINVALfor a nullps. 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms