libnvme(9)
β¨ NAME β¨
enum nvme_csts β bestie, this is the field that indicates the controller status register π
πΈ SYNOPSIS πΈ
enum nvme_csts {
NVME_CSTS_RDY_SHIFT ,
NVME_CSTS_CFS_SHIFT ,
NVME_CSTS_SHST_SHIFT ,
NVME_CSTS_NSSRO_SHIFT ,
NVME_CSTS_PP_SHIFT ,
NVME_CSTS_ST_SHIFT ,
NVME_CSTS_RDY_MASK ,
NVME_CSTS_CFS_MASK ,
NVME_CSTS_SHST_MASK ,
NVME_CSTS_NSSRO_MASK ,
NVME_CSTS_PP_MASK ,
NVME_CSTS_ST_MASK ,
NVME_CSTS_SHST_NORMAL ,
NVME_CSTS_SHST_OCCUR ,
NVME_CSTS_SHST_CMPLT
};
π Constants π
Okay so here's the whole squad β every constant in the enum, no cap, nothing skipped π
π« The shift amounts
These are the shift amounts, i.e. how far you gotta slide the bits over to actually get the thing. Iconic little offsets fr fr.
NVME_CSTS_RDY_SHIFTβ shift amount to get the ready β¨NVME_CSTS_CFS_SHIFTβ shift amount to get the controller fatal status πNVME_CSTS_SHST_SHIFTβ shift amount to get the shutdown status π¦NVME_CSTS_NSSRO_SHIFTβ shift amount to get the NVM subsystem reset occurred πNVME_CSTS_PP_SHIFTβ shift amount to get the processing paused πNVME_CSTS_ST_SHIFTβ shift amount to get the shutdown type β
π§ The masks
And these are the masks β the ones that do the actual picking-out of the bits. Mask + shift = the moment, iykyk π
NVME_CSTS_RDY_MASKβ mask to get the ready β¨NVME_CSTS_CFS_MASKβ mask to get the controller fatal status πNVME_CSTS_SHST_MASKβ mask to get the shutdown status π¦NVME_CSTS_NSSRO_MASKβ mask to get the NVM subsystem reset occurred πNVME_CSTS_PP_MASKβ mask to get the processing paused πNVME_CSTS_ST_MASKβ mask to get the shutdown type β
π The shutdown-status vibes
Three moods of the shutdown status field, and honestly they ate:
NVME_CSTS_SHST_NORMALβ normal operation πNVME_CSTS_SHST_OCCURβ shutdown processing occurring π₯NVME_CSTS_SHST_CMPLTβ shutdown processing complete π
That's the whole page, bestie β nothing left out, every constant accounted for π«Ά
Signed off with love from the libnvme(9) API Manual β¨ β this one's the enum nvme_csts page, dated October 2026 π Go read your status register, main character π
π¦ 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