---
name: "nvme_constants"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_constants"
---

# nvme\_constants(2)

A place to stash various constant nvme values

## NAME

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

## 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**

};

## Constants

- NVME\_NSID\_ALL

  A broadcast value that is used to specify all namespaces

- NVME\_NSID\_NONE

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

- NVME\_UUID\_NONE

  Use to omit a uuid command parameter

- NVME\_CNTLID\_NONE

  Use to omit a cntlid command parameter

- NVME\_CNSSPECID\_NONE

  Use to omit a cns\_specific\_id command parameter

- NVME\_LOG\_LSP\_NONE

  Use to omit a log lsp command parameter

- NVME\_LOG\_LSI\_NONE

  Use to omit a log lsi command parameter

- NVME\_LOG\_LPO\_NONE

  Use to omit a log lpo command parameter

- NVME\_IDENTIFY\_DATA\_SIZE

  The transfer size for nvme identify commands

- NVME\_LOG\_SUPPORTED\_LOG\_PAGES\_MAX

  The largest possible index in the supported log pages log.

- NVME\_ID\_NVMSET\_LIST\_MAX

  The largest possible nvmset index in identify nvmeset

- NVME\_ID\_UUID\_LIST\_MAX

  The largest possible uuid index in identify uuid list

- NVME\_ID\_CTRL\_LIST\_MAX

  The largest possible controller index in identify controller list

- NVME\_ID\_NS\_LIST\_MAX

  The largest possible namespace index in identify namespace list

- NVME\_ID\_SECONDARY\_CTRL\_MAX

  The largest possible secondary controller index in identify secondary controller

- NVME\_ID\_DOMAIN\_LIST\_MAX

  The largest possible domain index in the in domain list

- NVME\_ID\_ENDURANCE\_GROUP\_LIST\_MAX

  The largest possible endurance group index in the endurance group list

- NVME\_ID\_ND\_DESCRIPTOR\_MAX

  The largest possible namespace granularity index in the namespace granularity descriptor list

- NVME\_FEAT\_LBA\_RANGE\_MAX

  The largest possible LBA range index in feature lba range type

- NVME\_LOG\_ST\_MAX\_RESULTS

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

- NVME\_LOG\_TELEM\_BLOCK\_SIZE

  Specification defined size of Telemetry Data Blocks

- NVME\_LOG\_FID\_SUPPORTED\_EFFECTS\_MAX

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

- 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

  The reserved space in the MI Command effects log.

- NVME\_DSM\_MAX\_RANGES

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

- NVME\_NQN\_LENGTH

  Max length for NVMe Qualified Name

- NVMF\_TRADDR\_SIZE

  Max Transport Address size

- NVMF\_TSAS\_SIZE

  Max Transport Specific Address Subtype size

- NVME\_ZNS\_CHANGED\_ZONES\_MAX

  Max number of zones in the changed zones log page
