struct nvme_id_ns - Identify Namespace data structure
Contents
Members
nsze Namespace Size indicates the total size of the namespace in logical blocks. The number of
logical blocks is based on the formatted LBA size.
ncap Namespace Capacity indicates the maximum number of logical blocks that may be allocated in
the namespace at any point in time. The number of logical blocks is based on the formatted
LBA size.
nuse Namespace Utilization indicates the current number of logical blocks allocated in the
namespace. This field is smaller than or equal to the Namespace Capacity. The number of
logical blocks is based on the formatted LBA size.
nsfeat Namespace Features, see enumnvme_id_nsfeat.
nlbaf Number of LBA Formats defines the number of supported LBA data size and metadata size
combinations supported by the namespace and the highest possible index to structnvme_id_ns.lbaf.
flbas Formatted LBA Size, see enumnvme_id_ns_flbas.
mc Metadata Capabilities, see enumnvme_id_ns_mc.
dpc End-to-end Data Protection Capabilities, see enumnvme_id_ns_dpc.
dps End-to-end Data Protection Type Settings, see enumnvme_id_ns_dps.
nmic Namespace Multi-path I/O and Namespace Sharing Capabilities, see enumnvme_id_ns_nmic.
rescap Reservation Capabilities, see enumnvme_id_ns_rescap.
fpi Format Progress Indicator, see enumnvme_nd_ns_fpi.
dlfeat Deallocate Logical Block Features, see enumnvme_id_ns_dlfeat.
nawun Namespace Atomic Write Unit Normal indicates the namespace specific size of the write
operation guaranteed to be written atomically to the NVM during normal operation.
nawupf Namespace Atomic Write Unit Power Fail indicates the namespace specific size of the write
operation guaranteed to be written atomically to the NVM during a power fail or error
condition.
nacwu Namespace Atomic Compare & Write Unit indicates the namespace specific size of the write
operation guaranteed to be written atomically to the NVM for a Compare and Write fused
command.
nabsn Namespace Atomic Boundary Size Normal indicates the atomic boundary size for this namespace
for the NAWUN value. This field is specified in logical blocks.
nabo Namespace Atomic Boundary Offset indicates the LBA on this namespace where the first atomic
boundary starts.
nabspf Namespace Atomic Boundary Size Power Fail indicates the atomic boundary size for this
namespace specific to the Namespace Atomic Write Unit Power Fail value. This field is
specified in logical blocks.
noiob Namespace Optimal I/O Boundary indicates the optimal I/O boundary for this namespace. This
field is specified in logical blocks. The host should construct Read and Write commands that
do not cross the I/O boundary to achieve optimal performance.
nvmcap NVM Capacity indicates the total size of the NVM allocated to this namespace. The value is in
bytes.
npwg Namespace Preferred Write Granularity indicates the smallest recommended write granularity in
logical blocks for this namespace. This is a 0's based value.
npwa Namespace Preferred Write Alignment indicates the recommended write alignment in logical
blocks for this namespace. This is a 0's based value.
npdg Namespace Preferred Deallocate Granularity indicates the recommended granularity in logical
blocks for the Dataset Management command with the Attribute - Deallocate bit.
npda Namespace Preferred Deallocate Alignment indicates the recommended alignment in logical
blocks for the Dataset Management command with the Attribute - Deallocate bit
nows Namespace Optimal Write Size indicates the size in logical blocks for optimal write
performance for this namespace. This is a 0's based value.
mssrl Maximum Single Source Range Length indicates the maximum number of logical blocks that may be
specified in each valid Source Range field of a Copy command.
mcl Maximum Copy Length indicates the maximum number of logical blocks that may be specified in a
Copy command.
msrc Maximum Source Range Count indicates the maximum number of Source Range entries that may be
used to specify source data in a Copy command. This is a 0’s based value.
kpios Key Per I/O Status indicates namespace Key Per I/O capability status.
nulbaf Number of Unique Capability LBA Formats defines the number of supported user data size and
metadata size combinations supported by the namespace that may not share the same
capabilities. LBA formats shall be allocated in order and packed sequentially.
rsvd83 Reserved
kpiodaag Key Per I/O Data Access Alignment and Granularity indicates the alignment and granularity in
logical blocks that is required for commands that support a KPIOTAG value in the CETYPE
field.
rsvd88 Reserved
anagrpid ANA Group Identifier indicates the ANA Group Identifier of the ANA group of which the
namespace is a member.
rsvd96 Reserved
nsattr Namespace Attributes, see enumnvme_id_ns_attr.
nvmsetid NVM Set Identifier indicates the NVM Set with which this namespace is associated.
endgid Endurance Group Identifier indicates the Endurance Group with which this namespace is
associated.
nguid Namespace Globally Unique Identifier contains a 128-bit value that is globally unique and
assigned to the namespace when the namespace is created. This field remains fixed throughout
the life of the namespace and is preserved across namespace and controller operations
eui64 IEEE Extended Unique Identifier contains a 64-bit IEEE Extended Unique Identifier (EUI-64)
that is globally unique and assigned to the namespace when the namespace is created. This
field remains fixed throughout the life of the namespace and is preserved across namespace
and controller operations
lbaf LBA Format, see structnvme_lbaf.
vs Vendor Specific
August 2025 struct nvme_id_ns libnvme(2)
Name
struct nvme_id_ns - Identify Namespace data structure
Synopsis
struct nvme_id_ns {
__le64nsze;__le64ncap;__le64nuse;__u8nsfeat;__u8nlbaf;__u8flbas;__u8mc;__u8dpc;__u8dps;__u8nmic;__u8rescap;__u8fpi;__u8dlfeat;__le16nawun;__le16nawupf;__le16nacwu;__le16nabsn;__le16nabo;__le16nabspf;__le16noiob;__u8nvmcap[16];__le16npwg;__le16npwa;__le16npdg;__le16npda;__le16nows;__le16mssrl;__le32mcl;__u8msrc;__u8kpios;__u8nulbaf;__u8rsvd83;__le32kpiodaag;__u8rsvd88[4];__le32anagrpid;__u8rsvd96[3];__u8nsattr;__le16nvmsetid;__le16endgid;__u8nguid[16];__u8eui64[8];structnvme_lbaflbaf[64];__u8vs[3712];
};
