pwrdm_enable_hdwr_sar(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” a struct 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:

  • -EINVAL if the powerdomain pointer is null 😭
  • -EINVAL if the powerdomain does not support automatic save-and-restore πŸ™ˆ
  • 0 upon success πŸŽ‰ β€” slay

🌈 SEE ALSO 🌈

the whole friend group, in the Kernel file ./arch/arm/mach-omap2/powerdomain.c:


k bye bestie, stay iconic πŸ§šπŸ’– this page came to you from ./arch/arm/mach-omap2, dated October 2026 β€” periodt. πŸ“β­

πŸ“¦ where this page comes from