libnvme(9)
π
libnvme(9) β the libnvme API manual, bestie edition π¦
Okay so this page is literally all about one little struct from the libnvme API manual, and we're gonna stan it properly. Let's go β¨
πΈ NAME πΈ
struct nvme_mi_control_req β the Control Primitive request, no cap π
Like, that's its whole thing. That's the job. It's the request side of a Control Primitive, and it's giving main character energy in struct form π
β SYNOPSIS β
Here's the shape of it, exactly as it lives in the header β copy it faithful, don't touch a single character π«Ά
struct nvme_mi_control_req {
struct nvme_mi_msg_hdr hdr;
__u8 opcode;
__u8 tag;
__le16 cpsp;
};
That's the whole vibe. Four little members, one big mood. π§
π Members π
π hdr
Generic MI message header β that's it, that's the note. It's the generic header for the MI message, the boring-but-essential scaffolding holding everything up. Lowkey the backbone of the operation π
π¦ opcode
Control Primitive Opcodes β and it's using enum nvme_mi_control_opcode, iykyk. So this field is where the actual opcode goes, picked from that enum. Not me being obsessed with a __u8 but here we are π
π tag
A flag β an opaque value that gets passed from the request to the response. Opaque means you don't peek inside it, you just carry it along like a lil emotional support value π The request hands it over, the response receives it. Periodt.
β¨ cpsp
Control Primitive Specific Parameter. Yes, that's really the name, and yes, it's a __le16, and yes, it's specific to whatever Control Primitive you're doing. It's giving "details inside" energy π
Fr fr reminder bestie:cpspis little-endian (__le16) andtagis opaque β don't go reading meaning into it, just pass it through π
π cute sign-off π
This lil page is struct nvme_mi_control_req from libnvme(9), dated October 2026 β so like, future girl summer πΈ Go forth and slay your Control Primitive requests, bestie. Mwah ππ₯
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms