libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… NAME πŸ’…

ok so this is libnvme(9) β€” the API manual, bestie, and today's main character is enum nvme_st_code β€” it's literally the Self-test Code value ✨


πŸŽ€ SYNOPSIS πŸŽ€

enum nvme_st_code {
    NVME_ST_CODE_RESERVED ,
    NVME_ST_CODE_SHORT ,
    NVME_ST_CODE_EXTENDED ,
    NVME_ST_CODE_HOST_INIT ,
    NVME_ST_CODE_VS ,
    NVME_ST_CODE_ABORT ,
    NVME_ST_CODE_SHIFT ,
    NVME_ST_CODE_MASK

};

like… look at her. she's an enum. she's giving "small but mighty" πŸ¦‹


🌸 Constants 🌸

  • NVME_ST_CODE_RESERVED β€” Reserved. that's it. that's the whole vibe. it's the placeholder seat at the lunch table, nobody's sitting there πŸ™ˆ
  • NVME_ST_CODE_SHORT β€” Short device self-test operation. the speedrun of self-tests, ngl πŸƒβ€β™€οΈπŸ’¨
  • NVME_ST_CODE_EXTENDED β€” Extended device self-test operation. the full-length director's cut, no skips, highkey thorough πŸ‘‘
  • NVME_ST_CODE_HOST_INIT β€” Host-Initiated Refresh operation. you started this one, bestie β€” it's giving main character energy πŸ”₯
  • NVME_ST_CODE_VS β€” Vendor specific. iykyk β€” this one's between you and your vendor, fr fr 🀫
  • NVME_ST_CODE_ABORT β€” Abort device self-test operation. not me hitting the brakes mid-test 😭 βœ‹
  • NVME_ST_CODE_SHIFT β€” Shift amount to get the code value from the struct nvme_st_result.dsts field. it's literally the math that gets you the code you actually want out of that .dsts field β€” respectful king of bit manipulation 🧚✨
  • NVME_ST_CODE_MASK β€” Self-test code mask. wear it, it keeps your bits cute and contained πŸŽ€

πŸ’– quick vibe check: keep those literals exactly as they are, bestie β€” NVME_ST_CODE_SHIFT and NVME_ST_CODE_MASK are doing important bitwise work and we do not mess with the bitwise work πŸ’…

and that's the page!! 🫢 this lil' gem dropped in October 2026 as part of the libnvme(9) API manual β€” go forth and self-test responsibly, stunner β­πŸ’œ

πŸ“¦ where this page comes from