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 __le32 sized NVME_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 __le32 sized NVME_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