ufshcd_query_attr_retry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Okay so this page is ufshcd_query_attr_retry(9) from the Kernel API Manual β€” and it's literally the API function for sending query attribute with retries. That's the whole vibe, bestie ✨

πŸ’– SYNOPSIS πŸ’–

She rolls in like this:

int ufshcd_query_attr_retry (struct ufs_hba *hba , enum query_opcode
       opcode , enum attr_idn idn , u8 index , u8 selector , u32 *attr_val );

πŸŽ€ ARGUMENTS πŸŽ€

  • hba β€” per-adapter instance 🫢
  • opcode β€” attribute opcode ✨
  • idn β€” attribute idn to access πŸ‘€
  • index β€” index field πŸ“‡
  • selector β€” selector field 🎯
  • attr_val β€” the attribute value after the query request completes πŸ’…

✨ RETURN ✨

Here's the vibe check on what you get back:

  • 0 β€” upon success βœ…
  • > 0 β€” in case the UFS device reported an OCS error 😭
  • < 0 β€” if another error occurred πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/ufs/core/ufshcd.c is the home base, and the whole linked squad is here β€” no cap:


Bye bestie πŸ’… β€” this cutie signs off from the Kernel API Manual with source/version ./drivers/ufs/core, dated October 2026, and the page is ufshcd_query_attr_retry(9). Mwah πŸŽ€

πŸ“¦ where this page comes from