ufshcd_mcq_sqe_search(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, meet ufshcd_mcq_sqe_search from the Kernel API Manual πŸ’…. It’s literally here to search for the command in the submission queue. If the command is in the submission queue and not issued to the device yet, nullify the sqe so the host controller will skip fetching the sqe. slay, but make it kernel-safe ✨.

✨ SYNOPSIS ✨

bool ufshcd_mcq_sqe_search (struct ufs_hba *hba , struct ufs_hw_queue
*hwq , int task_tag );

πŸŽ€ ARGUMENTS πŸŽ€

  • hba β€” per adapter instance. like, the adapter’s whole main-character setup πŸ’–.
  • hwq β€” Hardware Queue to be searched. this queue is getting the vibe check πŸ”.
  • task_tag β€” The command’s task tag. the little name tag on the command 🏷️.

πŸ”₯ RETURN πŸ”₯

Returns true if the SQE containing the command is present in the SQ (not fetched by the controller); returns false if the SQE is not in the SQ. so: true = SQE is present in the SQ, false = it’s not πŸ’€.

🌈 SEE ALSO 🌈

Kernel file: ./drivers/ufs/core/ufs-mcq.c πŸ¦‹


signing off from ./drivers/ufs/core, stamped October 2026, with ufshcd_mcq_sqe_search(9) up in the header πŸ’œβœ¨

πŸ“¦ where this page comes from