libnvme(2)
π NAME π
okay bestie, gather round β this is enum nvme_st_curr_op, aka the Current Device Self-Test Operation enum. it lives in the libnvme API manual (that's the manual name, and yes, that's <italic>libnvme(2)</italic> to you π
).
β¨ SYNOPSIS β¨
enum nvme_st_curr_op {
NVME_ST_CURR_OP_NOT_RUNNING ,
NVME_ST_CURR_OP_SHORT ,
NVME_ST_CURR_OP_EXTENDED ,
NVME_ST_CURR_OP_VS ,
NVME_ST_CURR_OP_RESERVED ,
NVME_ST_CURR_OP_MASK ,
NVME_ST_CURR_OP_CMPL_MASK
};
she's a whole enum, she's serving, periodt. π
π«Ά Constants π«Ά
the cast of characters, no cap β every single one of them gets their moment:
NVME_ST_CURR_OP_NOT_RUNNINGβ literally nothing is happening rn. no device self-test operation in progress. the calm before the storm, the vibe check passed. πNVME_ST_CURR_OP_SHORTβ okay so a short device self-test operation is in progress. quick lil test, in and out, she's efficient. β¨NVME_ST_CURR_OP_EXTENDEDβ oh we're going LONG. an extended device self-test operation is in progress. main character energy, taking her time, we respect it. πNVME_ST_CURR_OP_VSβ vendor specific. iykyk. it's giving "ask your vendor bestie". πNVME_ST_CURR_OP_RESERVEDβ reserved. not for you, not for me. hands off. π₯NVME_ST_CURR_OP_MASKβ a mask π that gets you the current operation value from the structnvme_self_test_log.current_operationfield. she's the extraction tool, the pick-me-up of bits.NVME_ST_CURR_OP_CMPL_MASKβ and another mask π, this one gets you the current operation completion value from the structnvme_self_test_log.completionfield. two masks, two fields, both iconic.
pls don't sleep on the two _MASK ones bestie β they're specifically for pulling values out of those struct fields, not just decorative. πΈ
so yeah! that's the whole enum, every constant accounted for, nothing skipped, we ate and left no crumbs π. this page came from the libnvme manual, it's the enum nvme_st_curr_op entry, and it's dated July 2026 β shoutout to the libnvme(2) crew, mwah ππβ¨
π¦ 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