libnvme(2)

✨ NAME ✨

okay so bestie, this is a page from the libnvme API manual (section 2, iykyk) and it's literally all about enum nvme_st_code β€” the Self-test Code value. that's it, that's the whole vibe πŸ’…


🌸 SYNOPSIS 🌸

here's the icon itself, no cap, copied exactly:

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

};

πŸŽ€ Constants πŸŽ€

these are the constants, and each one is a whole personality, let's go one by one:

  • NVME_ST_CODE_RESERVED β€” reserved. that's it. it's giving "we're holding this seat for someone" energy πŸ™ˆ
  • NVME_ST_CODE_SHORT β€” the Short device self-test operation. quick lil self test, in and out πŸ¦‹
  • NVME_ST_CODE_EXTENDED β€” the Extended device self-test operation. the long version, the main character version, it's taking its time and honestly? iconic πŸ‘‘
  • NVME_ST_CODE_HOST_INIT β€” the Host-Initiated Refresh operation. the host said "i'll start this one actually" 🫢
  • NVME_ST_CODE_VS β€” Vendor specific. every vendor doing their own thing, slay, no notes πŸ’œ
  • NVME_ST_CODE_ABORT β€” the Abort device self-test operation. we're stopping, bestie, pack it up πŸ’€
  • NVME_ST_CODE_SHIFT β€” the Shift amount to get the code value from the struct nvme_st_result.dsts field. this one's the mathy one, the little offset you need so you can fish the actual code out of that dsts field inside struct nvme_st_result. lowkey the most useful one here fr fr ✨

ngl this whole enum is short but it ATE. every value documented, nothing skipped, and that's on periodt πŸ’–

that's the page, bestie! this was enum nvme_st_code from the libnvme API manual, page libnvme(2), dated July 2026 🌈 stay hydrated, read your structs, and go get that dsts field πŸ’…βœ¨

πŸ“¦ where this page comes from