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

# nvme\_cap(2)

This field indicates the controller capabilities register

## NAME

enum nvme\_cap - This field indicates the controller capabilities register

## SYNOPSIS

enum nvme\_cap {\
     **NVME\_CAP\_MQES\_SHIFT** , \
\
     **NVME\_CAP\_CQR\_SHIFT** , \
\
     **NVME\_CAP\_AMS\_SHIFT** , \
\
     **NVME\_CAP\_TO\_SHIFT** , \
\
     **NVME\_CAP\_DSTRD\_SHIFT** , \
\
     **NVME\_CAP\_NSSRC\_SHIFT** , \
\
     **NVME\_CAP\_CSS\_SHIFT** , \
\
     **NVME\_CAP\_BPS\_SHIFT** , \
\
     **NVME\_CAP\_CPS\_SHIFT** , \
\
     **NVME\_CAP\_MPSMIN\_SHIFT** , \
\
     **NVME\_CAP\_MPSMAX\_SHIFT** , \
\
     **NVME\_CAP\_PMRS\_SHIFT** , \
\
     **NVME\_CAP\_CMBS\_SHIFT** , \
\
     **NVME\_CAP\_NSSS\_SHIFT** , \
\
     **NVME\_CAP\_CRMS\_SHIFT** , \
\
     **NVME\_CAP\_MQES\_MASK** , \
\
     **NVME\_CAP\_CQR\_MASK** , \
\
     **NVME\_CAP\_AMS\_MASK** , \
\
     **NVME\_CAP\_TO\_MASK** , \
\
     **NVME\_CAP\_DSTRD\_MASK** , \
\
     **NVME\_CAP\_NSSRC\_MASK** , \
\
     **NVME\_CAP\_CSS\_MASK** , \
\
     **NVME\_CAP\_BPS\_MASK** , \
\
     **NVME\_CAP\_CPS\_MASK** , \
\
     **NVME\_CAP\_MPSMIN\_MASK** , \
\
     **NVME\_CAP\_MPSMAX\_MASK** , \
\
     **NVME\_CAP\_PMRS\_MASK** , \
\
     **NVME\_CAP\_CMBS\_MASK** , \
\
     **NVME\_CAP\_NSSS\_MASK** , \
\
     **NVME\_CAP\_CRMS\_MASK** , \
\
     **NVME\_CAP\_AMS\_WRR** , \
\
     **NVME\_CAP\_AMS\_VS** , \
\
     **NVME\_CAP\_CSS\_NVM** , \
\
     **NVME\_CAP\_CSS\_CSI** , \
\
     **NVME\_CAP\_CSS\_ADMIN** , \
\
     **NVME\_CAP\_CPS\_NONE** , \
\
     **NVME\_CAP\_CPS\_CTRL** , \
\
     **NVME\_CAP\_CPS\_DOMAIN** , \
\
     **NVME\_CAP\_CPS\_NVMS** , \
\
     **NVME\_CAP\_CRWMS** , \
\
     **NVME\_CAP\_CRIMS**

};

## Constants

- NVME\_CAP\_MQES\_SHIFT

  Shift amount to get the maximum queue entries supported

- NVME\_CAP\_CQR\_SHIFT

  Shift amount to get the contiguous queues required

- NVME\_CAP\_AMS\_SHIFT

  Shift amount to get the arbitration mechanism supported

- NVME\_CAP\_TO\_SHIFT

  Shift amount to get the timeout

- NVME\_CAP\_DSTRD\_SHIFT

  Shift amount to get the doorbell stride

- NVME\_CAP\_NSSRC\_SHIFT

  Shift amount to get the NVM subsystem reset supported

- NVME\_CAP\_CSS\_SHIFT

  Shift amount to get the command sets supported

- NVME\_CAP\_BPS\_SHIFT

  Shift amount to get the boot partition support

- NVME\_CAP\_CPS\_SHIFT

  Shift amount to get the controller power scope

- NVME\_CAP\_MPSMIN\_SHIFT

  Shift amount to get the memory page size minimum

- NVME\_CAP\_MPSMAX\_SHIFT

  Shift amount to get the memory page size maximum

- NVME\_CAP\_PMRS\_SHIFT

  Shift amount to get the persistent memory region supported

- NVME\_CAP\_CMBS\_SHIFT

  Shift amount to get the controller memory buffer supported

- NVME\_CAP\_NSSS\_SHIFT

  Shift amount to get the NVM subsystem shutdown supported

- NVME\_CAP\_CRMS\_SHIFT

  Shift amount to get the controller ready modes supported

- NVME\_CAP\_MQES\_MASK

  Mask to get the maximum queue entries supported

- NVME\_CAP\_CQR\_MASK

  Mask to get the contiguous queues required

- NVME\_CAP\_AMS\_MASK

  Mask to get the arbitration mechanism supported

- NVME\_CAP\_TO\_MASK

  Mask to get the timeout

- NVME\_CAP\_DSTRD\_MASK

  Mask to get the doorbell stride

- NVME\_CAP\_NSSRC\_MASK

  Mask to get the NVM subsystem reset supported

- NVME\_CAP\_CSS\_MASK

  Mask to get the command sets supported

- NVME\_CAP\_BPS\_MASK

  Mask to get the boot partition support

- NVME\_CAP\_CPS\_MASK

  Mask to get the controller power scope

- NVME\_CAP\_MPSMIN\_MASK

  Mask to get the memory page size minimum

- NVME\_CAP\_MPSMAX\_MASK

  Mask to get the memory page size maximum

- NVME\_CAP\_PMRS\_MASK

  Mask to get the persistent memory region supported

- NVME\_CAP\_CMBS\_MASK

  Mask to get the controller memory buffer supported

- NVME\_CAP\_NSSS\_MASK

  Mask to get the NVM subsystem shutdown supported

- NVME\_CAP\_CRMS\_MASK

  Mask to get the controller ready modes supported

- NVME\_CAP\_AMS\_WRR

  Weighted round robin with urgent priority class

- NVME\_CAP\_AMS\_VS

  Vendor specific

- NVME\_CAP\_CSS\_NVM

  NVM command set or a discovery controller

- NVME\_CAP\_CSS\_CSI

  Controller supports one or more I/O command sets

- NVME\_CAP\_CSS\_ADMIN

  No I/O command set is supported

- NVME\_CAP\_CPS\_NONE

  Not reported

- NVME\_CAP\_CPS\_CTRL

  Controller scope

- NVME\_CAP\_CPS\_DOMAIN

  Domain scope

- NVME\_CAP\_CPS\_NVMS

  NVM subsystem scope

- NVME\_CAP\_CRWMS

  Controller ready with media support

- NVME\_CAP\_CRIMS

  Controller ready independent of media support
