libnvme(9)
π libnvme(9) β the API Manual, bestie edition
okay so this is a page from libnvme, section 9 of the manual, and today's main character is enum nvme_id_ctrl_nvmsr π
β¨ NAME β¨
enum nvme_id_ctrl_nvmsr β literally the enum that reports info tied to the NVM Subsystem, and it lives right there in &struct nvme_id_ctrl.nvmsr. iykyk πΈ
π¦ SYNOPSIS π¦
enum nvme_id_ctrl_nvmsr {
NVME_CTRL_NVMSR_NVMESD_SHIFT ,
NVME_CTRL_NVMSR_NVMEE_SHIFT ,
NVME_CTRL_NVMSR_NVMESD_MASK ,
NVME_CTRL_NVMSR_NVMEE_MASK ,
NVME_CTRL_NVMSR_NVMESD ,
NVME_CTRL_NVMSR_NVMEE
};
like, that's the whole squad, no cap β¨
π§ Constants π§
welcome to the constants era, bestie β every single one, accounted for π
NVME_CTRL_NVMSR_NVMESD_SHIFTβ the NVMESD shift. yes queen, it's a shift πNVME_CTRL_NVMSR_NVMEE_SHIFTβ the NVMEE shift. same energy, different letters π«NVME_CTRL_NVMSR_NVMESD_MASKβ the NVMESD mask. masking, but make it iconic πNVME_CTRL_NVMSR_NVMEE_MASKβ the NVMEE mask. also a mask. we stan a matched set πNVME_CTRL_NVMSR_NVMESDβ okay so if this one is set, the NVM Subsystem is part of an NVMe Storage Device; if it's cleared, then nope, the NVM Subsystem is not part of an NVMe Storage Device. binary queen πNVME_CTRL_NVMSR_NVMEEβ and if this one is set, the NVM Subsystem is part of an NVMe Enclosure; if it's cleared, then it is not part of an NVMe Enclosure. same vibe check, different flag π₯
ngl these two are literally just "am i in a thing or not" flags and honestly? relatable π
and that's the page, bestie β go read some bits π¦
sign-off szn: this was enum nvme_id_ctrl_nvmsr π, from the API Manual (that's the libnvme(9) manual, section 9, mwah π), dated October 2026 β periodt β¨
π¦ 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