ufshcd_config_pwr_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

ufshcd_config_pwr_mode(9) πŸ’…

okay bestie, welcome to the Kernel API Manual page for ufshcd_config_pwr_mode β€” it’s giving configure a new power mode, and honestly? iconic. 🫢

✨ NAME ✨

ufshcd_config_pwr_mode β€” configure a new power mode

🌸 SYNOPSIS 🌸

int ufshcd_config_pwr_mode (struct ufs_hba *hba , struct
       ufs_pa_layer_attr *desired_pwr_mode , enum ufshcd_pmc_policy pmc_policy
       );

πŸŽ€ ARGUMENTS πŸŽ€

  • hba β€” per-adapter instance, aka the adapter’s own little home base.
  • desired_pwr_mode β€” desired power configuration, the exact glow-up you’re aiming for.
  • pmc_policy β€” Power Mode change policy, the rules for how this power-mode switch is allowed to go down.

πŸ”₯ RETURN πŸ”₯

0 upon success; < 0 upon failure. That’s it, bestie β€” zero is the slay, negative is the β€œwelp 😭.”

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/ufs/core/ufshcd.c plus literally all these refs, no skips, fr fr:

xoxo, this page’s source/version line is ./drivers/ufs/core, dated October 2026, and it’s literally ufshcd_config_pwr_mode(9) πŸ’–βœ¨

πŸ“¦ where this page comes from