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 struct nvme_self_test_log.current_operation field. 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 struct nvme_self_test_log.completion field. 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