libnvme(2)
π libnvme(2) β API Manual π
okay bestie, welcome to the libnvme API manual, page 2 of the manual section, no cap. pull up a chair, grab a boba, we're decoding one lil enum together and it's gonna be iconic. π§β¨
πΈ NAME πΈ
enum nvme_cmd_effects β Commands Supported and Effects. literally the receipts for what commands your NVMe drive says it can do and what chaos each one causes. π
β¨ SYNOPSIS β¨
enum nvme_cmd_effects {
NVME_CMD_EFFECTS_CSUPP ,
NVME_CMD_EFFECTS_LBCC ,
NVME_CMD_EFFECTS_NCC ,
NVME_CMD_EFFECTS_NIC ,
NVME_CMD_EFFECTS_CCC ,
NVME_CMD_EFFECTS_CSER_MASK ,
NVME_CMD_EFFECTS_CSE_MASK ,
NVME_CMD_EFFECTS_UUID_SEL
};
not me dropping the whole enum verbatim so you can copy-paste it, i got you fr fr. π«Ά
π Constants π
these are the members of the enum, one by one, no skipping, no summarising, we are doing ALL of them because that's just the vibe. π
NVME_CMD_EFFECTS_CSUPPβ Command Supported. the "yes queen, i can do that" bit. βNVME_CMD_EFFECTS_LBCCβ Logical Block Content Change. this command messes with the actual data in your logical blocks, so like, your bytes are not the same bytes afterwards. πNVME_CMD_EFFECTS_NCCβ Namespace Capability Change. the namespace's abilities shift after this one runs, slay but also be aware. πNVME_CMD_EFFECTS_NICβ Namespace Inventory Change. the list of namespaces itself can change, so your inventory is giving very much "in flux". π¦NVME_CMD_EFFECTS_CCCβ Controller Capability Change. the controller's capabilities change β big main character energy from this flag. πNVME_CMD_EFFECTS_CSER_MASKβ Command Submission and Execution Relaxations. mask for the relaxation bits, i.e. how chill the submission and execution rules get. πNVME_CMD_EFFECTS_CSE_MASKβ Command Submission and Execution. mask for the submission and execution bits themselves. the way this is just the core mechanic πNVME_CMD_EFFECTS_UUID_SELβ UUID Selection Supported. yes, UUID selection is supported, and yes, that's hot. π
as a reminder bestie: every single flag up there is named exactly as it appears in the enum, character for character, so don't go renaming them in your code, ok? the compiler will simply not be your friend. π
and that's the whole page! we ate and left no crumbs. β¨
cute lil sign-off: this was enum nvme_cmd_effects from the libnvme API manual, dated July 2026, living in manual section 2. mwah, go forth and check your command effects. ππ
π¦ 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