libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… libnvme(9) β€” the API manual, bestie edition ✨

Okay so welcome to libnvme, section 9 of your manual, and today's main character is one very specific little enum. Buckle up πŸŽ€


✨ NAME ✨

enum nvme_zns_mgmt_send_cqe_dw0 β€” literally the Zone Management Send - Completion Queue Entry Dword 0. That's it, that's the whole vibe. It's giving "small but crucial" ngl πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

enum nvme_zns_mgmt_send_cqe_dw0 {
    NVME_ZNS_MGMT_SEND_CQE_ZCC_SHIFT ,
    NVME_ZNS_MGMT_SEND_CQE_ZCC_MASK

};

Copy it exactly like that, no cap. Two constants, that's the whole enum, and yes the trailing comma situation is what it is πŸ™ˆ


🌸 Constants 🌸

So these are the two members of the enum, and here's the tea on each one:

  • NVME_ZNS_MGMT_SEND_CQE_ZCC_SHIFT β€” the shift amount you need to get Zone Capacity Changed (ZCC) out of there. It's the "how far do I slide over" number ✨
  • NVME_ZNS_MGMT_SEND_CQE_ZCC_MASK β€” the mask you use to get ZCC. Slap this on and you're extracting the ZCC bits, slay πŸ’…
Pro tip from me to you: shift and mask, always a duo. They're a matched set, icons only πŸ‘‘

Okay that's genuinely the whole page, and honestly? Short, sweet, and extremely efficient. Obsessed 🫢

Sign-off time, cute edition: this page is from October 2026, it's the enum nvme_zns_mgmt_send_cqe_dw0 entry, and it lives in libnvme(9). Byeee, go read the ZCC bits πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from