libnvme(9) API Manual libnvme(9)

# [NAME](#NAME)

enum nvme\_zns\_zs - Zone Descriptor Data Structure - Zone State Attributes

# [SYNOPSIS](#SYNOPSIS)

enum nvme\_zns\_zs {  
**NVME\_ZNS\_DESC\_ZS\_SHIFT** ,  
**NVME\_ZNS\_DESC\_ZS\_MASK** ,  
**NVME\_ZNS\_ZS\_EMPTY** ,  
**NVME\_ZNS\_ZS\_IMPL\_OPEN** ,  
**NVME\_ZNS\_ZS\_EXPL\_OPEN** ,  
**NVME\_ZNS\_ZS\_CLOSED** ,  
**NVME\_ZNS\_ZS\_READ\_ONLY** ,  
**NVME\_ZNS\_ZS\_FULL** ,  
**NVME\_ZNS\_ZS\_OFFLINE**

};

# [Constants](#Constants)

[NVME\_ZNS\_DESC\_ZS\_SHIFT](#NVME_ZNS_DESC_ZS_SHIFT)

Shift amount to get the Zone State (ZS) from the *struct nvme\_zns\_desc*.zs field.

[NVME\_ZNS\_DESC\_ZS\_MASK](#NVME_ZNS_DESC_ZS_MASK)

Mask to get ZS from the *struct nvme\_zns\_desc*.zs field.

[NVME\_ZNS\_ZS\_EMPTY](#NVME_ZNS_ZS_EMPTY)

Empty state

[NVME\_ZNS\_ZS\_IMPL\_OPEN](#NVME_ZNS_ZS_IMPL_OPEN)

Implicitly open state

[NVME\_ZNS\_ZS\_EXPL\_OPEN](#NVME_ZNS_ZS_EXPL_OPEN)

Explicitly open state

[NVME\_ZNS\_ZS\_CLOSED](#NVME_ZNS_ZS_CLOSED)

Closed state

[NVME\_ZNS\_ZS\_READ\_ONLY](#NVME_ZNS_ZS_READ_ONLY)

Read only state

[NVME\_ZNS\_ZS\_FULL](#NVME_ZNS_ZS_FULL)

Full state

[NVME\_ZNS\_ZS\_OFFLINE](#NVME_ZNS_ZS_OFFLINE)

Offline state

enum nvme\_zns\_zs October 2026

---

Document: nvme_zns_zs-libnvme3(2) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
