libnvme(9)
π 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:_SHIFTtells you how far to scoot,_MASKtells 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
- 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