libnvme(9)
π 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
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms