libnvme(2)
π libnvme β struct nvme_mi_cmd_supported_effects_log π
okay so bestie, we're in the libnvme API manual (that's the libnvme(2) one, mwah) and today's main character is a struct. yes, a whole struct. and honestly? she's kinda iconic for it. this is the NVMe-MI Commands Supported and Effects Log and likeβ¦ the name is doing a LOT of work already so let's just get into it π«Ά
β¨ NAME β¨
struct nvme_mi_cmd_supported_effects_log β the NVMe-MI Commands Supported and Effects Log. that's her. that's the girl. no cap πΈ
π SYNOPSIS π
okay so here's the whole vibe, character for character, exactly as written. don't touch anything, she's perfect:
struct nvme_mi_cmd_supported_effects_log {
__le32 mi_cmd_support[NVME_LOG_MI_CMD_SUPPORTED_EFFECTS_MAX];
__le32 reserved1[NVME_LOG_MI_CMD_SUPPORTED_EFFECTS_RESERVED];
};
like, look at those array sizes. NVME_LOG_MI_CMD_SUPPORTED_EFFECTS_MAX and NVME_LOG_MI_CMD_SUPPORTED_EFFECTS_RESERVED just sitting there being all symbolic. we love a named constant moment π
reminder bestie: that's the definition verbatim, so if you're copying it into your own code, copy it exactly. no β¨remixingβ¨, okay?
π¦ Members π¦
the members section. two of them. both eating, both essential, here we go:
mi_cmd_supportβ this is the NVMe-MI Commands Supported part. the whole point of the struct, lowkey. she's an array of__le32sizedNVME_LOG_MI_CMD_SUPPORTED_EFFECTS_MAX.reserved1β and this one is justβ¦ Reserved. that's it. that's the description. reserved. do not perceive her, do not name her children, do not write to her. it's giving "do not touch the exhibit" π« an array of__le32sizedNVME_LOG_MI_CMD_SUPPORTED_EFFECTS_RESERVED.
π vibe check π
k so tl;dr fr fr: one struct, two members. one does the actual "which NVMe-MI commands are supported" job, the other is reserved and must stay reserved. the end. periodt π
π SEE ALSO π
β¦there isn't one, bestie. no SEE ALSO in this page. the struct said "I work alone" and honestly? respect. π
and that's the whole page!! ty for reading my lil struct essay, ily, go write some good NVMe-MI code and remember to leave reserved1 alone πβ¨
sign-off for the girlies who like metadata: this page belongs to the libnvme(2) manual set, and it's dated July 2026. so she's fresh, she's current, she's giving future-forward queen energy ππ¦πΈ
π¦ 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