pwrdm_regis...atform_funcs(9)
π pwrdm_register_platform_funcs β the Kernel API Manual tea π
okay bestie, welcome to the Kernel API Manual page for pwrdm_regis...atform_funcs(9) β yes the title got truncated by the terminal, no we're not gonna fix it, it's giving main character energy. sit down, grab a strawberry π, and let's talk about registering powerdomain implementation fns β¨
π¦ NAME π¦
pwrdm_register_platform_funcs β literally the function where you register your powerdomain implementation fns, no cap π
πΈ SYNOPSIS πΈ
int pwrdm_register_platform_funcs (struct pwrdm_ops *po );
like, that's it. that's the whole vibe check π₯
π ARGUMENTS π
poβ func pointers for arch specific implementations π« this is where you hand over your lil bundle of function pointers, iykyk
β¨ DESCRIPTION β¨
So here's the tea β: you're registering the list of function pointers that get used to actually implement the powerdomain functions across the different OMAP SoCs. different chip, different plumbing, same vibe π§
β οΈ bestie, listen β this should be called before any other pwrdm_register*() function. like, before. not after. before. π
Return values, fr fr:
-EINVALβ ifpois null π (you gave it nothing, it said no)-EEXISTβ if platform functions have already been registered π (you already did this, it's not doing it twice)0β upon success π slay, we love a clean zero
π SEE ALSO π
okay this list is long, but every single one of these is iconic in its own right, so here we go β Kernel file ./arch/arm/mach-omap2/powerdomain.c plus:
_pwrdm_register(9)_pwrdm_save_clkdm_state_and_activate(9)_pwrdm_restore_clkdm_state(9)pwrdm_register_pwrdms(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)
like, go read them. all of them. this is your reading list now ππ
and that's the whole page bestie!! π«Ά this lil slice of the Kernel API Manual lives at ./arch/arm/mach-omap2 and it's stamped October 2026 β so yeah, future vibes only β bye, ily, go register your funcs responsibly π
π¦ 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