ufshcd_mcq_sq_cleanup(9)
β¨ ufshcd_mcq_sq_cleanup β¨
okay so bestie, this is a page from the Kernel API Manual π β we're deep in kernel-land, and this little function is all about tidying up after a command that's still hanging around. Think of it as the cleanup crew for the submission queue π§Ήβ¨
πΈ SYNOPSIS πΈ
int ufshcd_mcq_sq_cleanup (struct ufs_hba *hba , int task_tag );
π ARGUMENTS π
hbaβ the per adapter instance. like, the whole adapter's main character πtask_tagβ the command's task tag. every command's got its own lil ID tag π·οΈ
π¦ RETURN π¦
0for success π- an error code otherwise π (yeah, it can go wrong, that's the vibe check)
π₯ SEE ALSO π₯
- Kernel file
./drivers/ufs/core/ufs-mcq.c ufshcd_mcq_config_mac(9)ufshcd_mcq_req_to_hwq(9)ufshcd_mcq_queue_cfg_addr(9)ufshcd_get_hba_mac(9)ufshcd_mcq_nullify_sqe(9)ufshcd_mcq_sqe_search(9)ufshcd_mcq_abort(9)
ngl bestie, if you're here you're already in the thick of it β this is the kind of function that cleans up submission queue resources tied to a pending command, and it returns 0 on success or an error code otherwise. that's the whole tea β no cap.
okay that's the page!! stay slay, keep your queues clean, and remember β kernel people are literally the coolest π
with love from the Kernel API Manual π β sourced from ./drivers/ufs/core, dated October 2026 π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms