libnvme(9) API Manual libnvme(9)

# [NAME](#NAME)

enum nvme\_constants - A place to stash various constant nvme values

# [SYNOPSIS](#SYNOPSIS)

enum nvme\_constants {  
**NVME\_NSID\_ALL** ,  
**NVME\_NSID\_NONE** ,  
**NVME\_UUID\_NONE** ,  
**NVME\_CNTLID\_NONE** ,  
**NVME\_CNSSPECID\_NONE** ,  
**NVME\_LOG\_LSP\_NONE** ,  
**NVME\_LOG\_LSI\_NONE** ,  
**NVME\_LOG\_LPO\_NONE** ,  
**NVME\_IDENTIFY\_DATA\_SIZE** ,  
**NVME\_LOG\_SUPPORTED\_LOG\_PAGES\_MAX** ,  
**NVME\_ID\_NVMSET\_LIST\_MAX** ,  
**NVME\_ID\_UUID\_LIST\_MAX** ,  
**NVME\_ID\_CTRL\_LIST\_MAX** ,  
**NVME\_ID\_NS\_LIST\_MAX** ,  
**NVME\_ID\_SECONDARY\_CTRL\_MAX** ,  
**NVME\_ID\_DOMAIN\_LIST\_MAX** ,  
**NVME\_ID\_ENDURANCE\_GROUP\_LIST\_MAX** ,  
**NVME\_ID\_ND\_DESCRIPTOR\_MAX** ,  
**NVME\_FEAT\_LBA\_RANGE\_MAX** ,  
**NVME\_LOG\_ST\_MAX\_RESULTS** ,  
**NVME\_LOG\_TELEM\_BLOCK\_SIZE** ,  
**NVME\_LOG\_FID\_SUPPORTED\_EFFECTS\_MAX** ,  
**NVME\_LOG\_MI\_CMD\_SUPPORTED\_EFFECTS\_MAX** ,  
**NVME\_LOG\_MI\_CMD\_SUPPORTED\_EFFECTS\_RESERVED** ,  
**NVME\_DSM\_MAX\_RANGES** ,  
**NVME\_NQN\_LENGTH** ,  
**NVMF\_TRADDR\_SIZE** ,  
**NVMF\_TSAS\_SIZE** ,  
**NVME\_ZNS\_CHANGED\_ZONES\_MAX** ,  
**NVME\_STREAM\_ID\_MAX** ,  
**NVME\_UNDERLYING\_NS\_LIST\_MAX**

};

# [Constants](#Constants)

[NVME\_NSID\_ALL](#NVME_NSID_ALL)

A broadcast value that is used to specify all namespaces

[NVME\_NSID\_NONE](#NVME_NSID_NONE)

The invalid namespace id, for when the nsid parameter is not used in a command

[NVME\_UUID\_NONE](#NVME_UUID_NONE)

Use to omit a uuid command parameter

[NVME\_CNTLID\_NONE](#NVME_CNTLID_NONE)

Use to omit a cntlid command parameter

[NVME\_CNSSPECID\_NONE](#NVME_CNSSPECID_NONE)

Use to omit a cns\_specific\_id command parameter

[NVME\_LOG\_LSP\_NONE](#NVME_LOG_LSP_NONE)

Use to omit a log lsp command parameter

[NVME\_LOG\_LSI\_NONE](#NVME_LOG_LSI_NONE)

Use to omit a log lsi command parameter

[NVME\_LOG\_LPO\_NONE](#NVME_LOG_LPO_NONE)

Use to omit a log lpo command parameter

[NVME\_IDENTIFY\_DATA\_SIZE](#NVME_IDENTIFY_DATA_SIZE)

The transfer size for nvme identify commands

[NVME\_LOG\_SUPPORTED\_LOG\_PAGES\_MAX](#NVME_LOG_SUPPORTED_LOG_PAGES_MAX)

The largest possible index in the supported log pages log.

[NVME\_ID\_NVMSET\_LIST\_MAX](#NVME_ID_NVMSET_LIST_MAX)

The largest possible nvmset index in identify nvmeset

[NVME\_ID\_UUID\_LIST\_MAX](#NVME_ID_UUID_LIST_MAX)

The largest possible uuid index in identify uuid list

[NVME\_ID\_CTRL\_LIST\_MAX](#NVME_ID_CTRL_LIST_MAX)

The largest possible controller index in identify controller list

[NVME\_ID\_NS\_LIST\_MAX](#NVME_ID_NS_LIST_MAX)

The largest possible namespace index in identify namespace list

[NVME\_ID\_SECONDARY\_CTRL\_MAX](#NVME_ID_SECONDARY_CTRL_MAX)

The largest possible secondary controller index in identify secondary controller

[NVME\_ID\_DOMAIN\_LIST\_MAX](#NVME_ID_DOMAIN_LIST_MAX)

The largest possible domain index in the in domain list

[NVME\_ID\_ENDURANCE\_GROUP\_LIST\_MAX](#NVME_ID_ENDURANCE_GROUP_LIST_MAX)

The largest possible endurance group index in the endurance group list

[NVME\_ID\_ND\_DESCRIPTOR\_MAX](#NVME_ID_ND_DESCRIPTOR_MAX)

The largest possible namespace granularity index in the namespace granularity descriptor list (i.e. with the LBA Format Extension Enable field set to 1h in the Host Behavior Support feature)

[NVME\_FEAT\_LBA\_RANGE\_MAX](#NVME_FEAT_LBA_RANGE_MAX)

The largest possible LBA range index in feature lba range type

[NVME\_LOG\_ST\_MAX\_RESULTS](#NVME_LOG_ST_MAX_RESULTS)

The largest possible self test result index in the device self test log

[NVME\_LOG\_TELEM\_BLOCK\_SIZE](#NVME_LOG_TELEM_BLOCK_SIZE)

Specification defined size of Telemetry Data Blocks

[NVME\_LOG\_FID\_SUPPORTED\_EFFECTS\_MAX](#NVME_LOG_FID_SUPPORTED_EFFECTS_MAX)

The largest possible FID index in the feature identifiers effects log.

[NVME\_LOG\_MI\_CMD\_SUPPORTED\_EFFECTS\_MAX](#NVME_LOG_MI_CMD_SUPPORTED_EFFECTS_MAX)

The largest possible MI Command index in the MI Command effects log.

[NVME\_LOG\_MI\_CMD\_SUPPORTED\_EFFECTS\_RESERVED](#NVME_LOG_MI_CMD_SUPPORTED_EFFECTS_RESERVED)

The reserved space in the MI Command effects log.

[NVME\_DSM\_MAX\_RANGES](#NVME_DSM_MAX_RANGES)

The largest possible range index in a data-set management command

[NVME\_NQN\_LENGTH](#NVME_NQN_LENGTH)

Max length for NVMe Qualified Name

[NVMF\_TRADDR\_SIZE](#NVMF_TRADDR_SIZE)

Max Transport Address size

[NVMF\_TSAS\_SIZE](#NVMF_TSAS_SIZE)

Max Transport Specific Address Subtype size

[NVME\_ZNS\_CHANGED\_ZONES\_MAX](#NVME_ZNS_CHANGED_ZONES_MAX)

Max number of zones in the changed zones log page

[NVME\_STREAM\_ID\_MAX](#NVME_STREAM_ID_MAX)

Max number of stream IDs

[NVME\_UNDERLYING\_NS\_LIST\_MAX](#NVME_UNDERLYING_NS_LIST_MAX)

The maximum number of Underlying Namespace Entry data structures reportable in the Get Underlying Namespace List Identify data structure

enum nvme\_constants October 2026

---

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