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 thestruct nvme_st_result.dstsfield. this one's the mathy one, the little offset you need so you can fish the actual code out of thatdstsfield insidestruct 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
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms