libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸŽ€ NAME πŸŽ€

okay bestie, so this page is from libnvme, section 9 of the API Manual, and it's all about enum nvme_mi_sw β€” that's the Smart Warnings enum, and yes it's exactly as iconic as it sounds πŸ’…


✨ SYNOPSIS ✨

here's the whole squad, typed out character for character so you can't mess it up:

enum nvme_mi_sw {
    NVME_MI_SW_ST_SHIFT ,
    NVME_MI_SW_ST_MASK ,
    NVME_MI_SW_TAUT_SHIFT ,
    NVME_MI_SW_TAUT_MASK ,
    NVME_MI_SW_RD_SHIFT ,
    NVME_MI_SW_RD_MASK ,
    NVME_MI_SW_RO_SHIFT ,
    NVME_MI_SW_RO_MASK ,
    NVME_MI_SW_VMBF_SHIFT ,
    NVME_MI_SW_VMBF_MASK

};

🌸 Constants 🌸

so each one of these bad boys comes in a SHIFT + MASK duo, like matching friendship bracelets 🫢 β€” the shift gives you the offset and the mask pulls the field out. no cap, that's the whole vibe.

  • NVME_MI_SW_ST_SHIFT β€” Shift amount to get Spare Threshold ✨
  • NVME_MI_SW_ST_MASK β€” Mask to get Spare Threshold ✨
  • NVME_MI_SW_TAUT_SHIFT β€” Shift amount to get Temperature Above or Under Threshold πŸ”₯
  • NVME_MI_SW_TAUT_MASK β€” Mask to get Temperature Above or Under Threshold πŸ”₯
  • NVME_MI_SW_RD_SHIFT β€” Shift amount to get Reliability Degraded πŸ’€
  • NVME_MI_SW_RD_MASK β€” Mask to get Reliability Degraded πŸ’€
  • NVME_MI_SW_RO_SHIFT β€” Shift amount to get Read Only πŸ”’
  • NVME_MI_SW_RO_MASK β€” Mask to get Read Only πŸ”’
  • NVME_MI_SW_VMBF_SHIFT β€” Shift amount to get Volatile Memory Backup Failed 😭
  • NVME_MI_SW_VMBF_MASK β€” Mask to get Volatile Memory Backup Failed 😭
bestie reminder: _SHIFT tells you how far to scoot, _MASK tells you what to keep. slay responsibly 🧚

and that's the page, mwah πŸ’– β€” this lil' cutie came out of the API Manual as libnvme(9) in October 2026, so go forth and shift-and-mask like the main character you are, periodt πŸ‘‘

πŸ“¦ where this page comes from