libnvme(9)

πŸ“¦ version 3.2, in arch rolling

✨ 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