pwrdm_enable_hdwr_sar(9)
π pwrdm_enable_hdwr_sar(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β today's main character is pwrdm_enable_hdwr_sar, a little function with big "let the hardware do the boring part" energy π
πΈ NAME πΈ
pwrdm_enable_hdwr_sar β enable automatic hardware SAR for a pwrdm π«Ά
(SAR = save-and-restore, iykyk π )
π¦ SYNOPSIS π¦
int pwrdm_enable_hdwr_sar (struct powerdomain *pwrdm );
π ARGUMENTS π
pwrdmβ astruct powerdomain *. that's it, that's the whole argument list, she's low maintenance β¨
π DESCRIPTION π
So what she does is: enable automatic context save-and-restore upon power state change for some devices in the powerdomain pwrdm π«
β οΈ Warning bestie, listen up: this only affects a subset of devices in a powerdomain. not all of them. check the TRM closely, no cap. ππ
Return values, fr fr:
-EINVALif the powerdomain pointer is null π-EINVALif the powerdomain does not support automatic save-and-restore π0upon success π β slay
π SEE ALSO π
the whole friend group, in the Kernel file ./arch/arm/mach-omap2/powerdomain.c:
_pwrdm_register(9)_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_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)
k bye bestie, stay iconic π§π this page came to you from ./arch/arm/mach-omap2, dated October 2026 β periodt. πβ
π¦ 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