NVME_MI_ADMIN_GET_LOG_MI_CMD_SUPPORTED_EFFECTS(2)
β¨ NAME β¨
nvme_mi_admin_get_log_mi_cmd_supported_effects β bestie, this one displays the MI Commands Supported by the controller π
This page lives in the libnvme API manual, so if you're the kind of girlie who reads manpages for fun (valid), you're in exactly the right place π
πΈ SYNOPSIS πΈ
int nvme_mi_admin_get_log_mi_cmd_supported_effects (nvme_mi_ctrl_t ctrl
, bool rae , struct nvme_mi_cmd_supported_effects_log *log );
okay so it's giving function signature, it's giving three args, and it's giving int return. She's not complicated, she just wants to know things π
π¦ ARGUMENTS π¦
ctrlβ the Controller to query π«Ά like, this is the one you're asking. the main character. the source of all the tea.raeβ Retain asynchronous events β¨ a littleboolthat says whether you're holding onto those async events or not, iykyk.logβ the MI Command Supported and Effects data structure π this is where the answer gets written, bestie. it's astruct nvme_mi_cmd_supported_effects_log *, so yes, pointer, because we're fancy like that.
π RETURN π
So here's the tea on what comes back:
- if a response was received, you get the nvme command status β check
enum nvme_status_fieldfor what that actually means π - otherwise? it's
-1, and errno gets set. not the fun outcome, but at least she tells you why π
β οΈ fr fr, the-1case means no response came through β always peek aterrnobefore you start spiralling β¨
libnvme API manual Β· July 2026 β that's the source, that's the version, that's the date, and that's the whole page bestie π no cap, every flag preserved, every struct intact, we ate and left no crumbs ππ§β
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms