ufshcd_get_op_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to ufshcd_get_op_mode(9) from the Kernel API Manual πŸ’–. The name vibe is ufshcd_get_op_mode β€” get UFS operating mode. That’s it, that’s the section, and it ate ✨.


✨ SYNOPSIS ✨

here’s the signature, copy it exactly because we do not play with identifiers:

enum ufs_op_mode ufshcd_get_op_mode (struct ufs_hba *hba );

🫢 ARGUMENTS 🫢

  • hba β€” the per-adapter instance, aka the one and only argument bestie 🫢.

πŸ’– DESCRIPTION πŸ’–

The way this works is lowkey simple: use the PA_PWRMODE value to represent the operating mode of UFS. That’s the whole description, and honestly? iconic. No extra lore, no cap 😌.


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/ufs/core/ufshcd.c is the main character here, and the SEE ALSO squad is long enough to be a group chat. Every single ref, no skips, bestie:

That’s the whole friend group, periodt πŸ’….


okay that’s the whole page! source/version: ./drivers/ufs/core; date: October 2026; title: ufshcd_get_op_mode(9) β€” mwah, slay, bye πŸ’‹βœ¨

πŸ“¦ where this page comes from