ufshcd_quer...riptor_retry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so welcome to the Kernel API Manual, bestie πŸ’– β€” this is the page for ufshcd_quer...riptor_retry(9), and it’s literally the API function for sending descriptor requests. no cap, we’re getting into the signature, the args, the return tea, and the giant SEE ALSO squad. 🫢

✨ NAME ✨

ufshcd_query_descriptor_retry β€” the API function for sending descriptor requests. that’s the name, that’s the vibe. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

here’s the signature, copy it exactly, don’t @ me:

int ufshcd_query_descriptor_retry (struct ufs_hba *hba , enum query_opcode opcode , enum desc_idn idn , u8 index , u8 selector , u8 *desc_buf , int *buf_len );

πŸŽ€ ARGUMENTS πŸŽ€

  • hba β€” per-adapter instance.
  • opcode β€” attribute opcode.
  • idn β€” attribute idn to access.
  • index β€” index field.
  • selector β€” selector field.
  • desc_buf β€” the buffer that contains the descriptor.
  • buf_len β€” length parameter passed to the device.

🌸 DESCRIPTION 🌸

the buf_len parameter will contain, on return, the length parameter received on the response. that’s the whole description, and yes it’s giving concise. πŸ“

πŸ”₯ RETURN πŸ”₯

  • 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 where the source bestie lives. the whole squad of related pages is:


and that’s the whole page, bestie! πŸŽ€ source/version check: this sweet thing lives in ./drivers/ufs/core, dated October 2026, and the footer says ufshcd_quer...riptor_retry(9). slay. πŸ’…

πŸ“¦ where this page comes from