nvme_mi_control(2)
π NAME π
nvme_mi_control β bestie, this is the one that runs a Control Primitive command π
β¨ SYNOPSIS β¨
int nvme_mi_control (nvme_mi_ep_t ep , __u8 opcode , __u16 cpsp , __u16
*result_cpsr );
πΈ ARGUMENTS πΈ
epβ the endpoint for MI communication, like the little phone line you're yapping over πopcodeβ the Control Primitive opcode (you grab this fromenum nvme_mi_control_opcode) πcpspβ the Control Primitive Specific Parameter. yes that's the whole name. say it five times fast π«Άresult_cpsrβ optional field, and if you hand it over it'll give you back the result from theCPSRfield π
π¦ DESCRIPTION π¦
okay so, what this does is it performs a Control Primitive command, and it uses whichever opcode you dropped into opcode. π
and then β this is the slay part β it stores the result from the CPSR field into result_cpsr, but only if you actually set it. no result_cpsr, no result returning, no cap fr fr. π
See: enum nvme_mi_control_opcode β¨
π RETURN π
0 on success, and non-zero on failure. so like, zero is the main character here and anything else is giving "it didn't work bestie" π
no other manual pages linked from here, so that's the whole vibe check, periodt. π
written against the libnvme API manual, page date July 2026 β mwah, go run your Control Primitive commands, you gorgeous nerd πππ
π¦ 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