_pwrdm_register(9)
π _pwrdm_register(9) β like, the Kernel API Manual page you actually wanna read π
okay so bestie, buckle up π this one is from the Kernel API Manual, section 9, and it's genuinely not that deep β it's one little function that puts a powerdomain on a list. slay. let's go β¨
πΈ NAME πΈ
_pwrdm_register β register a powerdomain π
π¦ SYNOPSIS π¦
int _pwrdm_register (struct powerdomain *pwrdm );
that's it. that's the whole vibe check. one argument, returns an int, iconic behavior honestly π
π ARGUMENTS π
pwrdmβ astruct powerdomain *, aka the powerdomain you're about to register. it's giving "here's the pointer, do ur thing" π«Ά
β¨ DESCRIPTION β¨
so what does it do? it adds a powerdomain to the internal powerdomain list. literally that's the whole job. main character energy for a linked list π
and the returns? let's break it down fr fr:
-EINVALβ you handed it a null pointer π like bestie. no. absolutely not.-EEXISTβ a powerdomain is already registered under the provided name. someone got there first π no duplicates allowed, periodt.0β success!! we ate π₯π
π SEE ALSO π
the kernel file in question lives at ./arch/arm/mach-omap2/powerdomain.c β that's the source of truth, go look π§
and the whole friend group (these are all (9) pages, no cap):
_pwrdm_save_clkdm_state_and_activate(9)_pwrdm_restore_clkdm_state(9)pwrdm_register_platform_funcs(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)
okay that's the whole page, you're so welcome π«Ά this cutie dropped from ./arch/arm/mach-omap2, dated October 2026, and it's filed under _pwrdm_register(9) β go forth and register responsibly, bestie πππ¦
π¦ 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