ufshcd_mcq_config_mac(9)
π
ufshcd_mcq_config_mac β a Kernel API Manual moment β¨
okay so bestie, we're in the Kernel API Manual today and the main character is literally ufshcd_mcq_config_mac π no cap, this one's short but she matters.
πΈ NAME πΈ
ufshcd_mcq_config_mac β Set the #Max Activ Cmds. π¦
like⦠yes, that's the whole vibe. she sets the max active commands. periodt.
β¨ SYNOPSIS β¨
void ufshcd_mcq_config_mac (struct ufs_hba *hba , u32 max_active_cmds );
that's it. that's the whole call. note the void β she gives you nothing back, she's not here to hand out return values, she's here to configure. π
π«Ά ARGUMENTS π«Ά
hbaβ per adapter instance π§ this is the adapter's own little world, her per-instance era.max_active_cmdsβ maximum # of active commands to the device at any time π₯ the literal ceiling, the limit, the "you shall not pass" of in-flight commands.
π DESCRIPTION π
The controller won't send more than the max_active_cmds to the device at any time. full stop. π
it's giving bouncer at the club β the controller checks the count, sees it's already at max_active_cmds, and is like "nope, we're full bestie, come back later" π. it's a hard cap, not a suggestion, not a vibe, an actual limit on how many commands can be in flight to the device at any given moment β. so if you set it low, things get cozy; if you set it high, get ready for a crowd π
no tricks, no hidden behaviour β the manpage literally only promises this one thing, and she delivers it π―
π¦ SEE ALSO π¦
Kernel file ./drivers/ufs/core/ufs-mcq.c π and her whole friend group:
ufshcd_mcq_req_to_hwq(9)ufshcd_mcq_queue_cfg_addr(9)ufshcd_get_hba_mac(9)ufshcd_mcq_sq_cleanup(9)ufshcd_mcq_nullify_sqe(9)ufshcd_mcq_sqe_search(9)ufshcd_mcq_abort(9)
all iconic, all in the same source file, all worth a read iykyk π
and that's the page!! π shoutout to ./drivers/ufs/core for housing all this, dated October 2026, and obviously the queen herself ufshcd_mcq_config_mac(9) π mwah, slay, go set your max active cmds responsibly πβ¨
π¦ 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