libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… 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