libnvme(2)
okay so bestie, this is the libnvme(2) API manual and we're doing a whole deep dive on enum nvme_cmbsz β no cap. It's giving controller memory buffer size energy, and honestly? iconic. π«Ά
β¨ NAME β¨
enum nvme_cmbsz β this field indicates the controller memory buffer size, periodt. π
π¦ SYNOPSIS π¦
enum nvme_cmbsz {
NVME_CMBSZ_SQS_SHIFT ,
NVME_CMBSZ_CQS_SHIFT ,
NVME_CMBSZ_LISTS_SHIFT ,
NVME_CMBSZ_RDS_SHIFT ,
NVME_CMBSZ_WDS_SHIFT ,
NVME_CMBSZ_SZU_SHIFT ,
NVME_CMBSZ_SZ_SHIFT ,
NVME_CMBSZ_SQS_MASK ,
NVME_CMBSZ_CQS_MASK ,
NVME_CMBSZ_LISTS_MASK ,
NVME_CMBSZ_RDS_MASK ,
NVME_CMBSZ_WDS_MASK ,
NVME_CMBSZ_SZU_MASK ,
NVME_CMBSZ_SZ_MASK ,
NVME_CMBSZ_SZU_4K ,
NVME_CMBSZ_SZU_64K ,
NVME_CMBSZ_SZU_1M ,
NVME_CMBSZ_SZU_16M ,
NVME_CMBSZ_SZU_256M ,
NVME_CMBSZ_SZU_4G ,
NVME_CMBSZ_SZU_64G
};
πΈ Constants πΈ
NVME_CMBSZ_SQS_SHIFTβ the shift amount to get the submission queue support. it literally slides the bits into place, iykyk.NVME_CMBSZ_CQS_SHIFTβ the shift amount to get the completion queue support. completion queen behavior.NVME_CMBSZ_LISTS_SHIFTβ the shift amount to get the PLP SGL list support. lists? we love lists.NVME_CMBSZ_RDS_SHIFTβ the shift amount to get the read data support. reading is fundamental bestie.NVME_CMBSZ_WDS_SHIFTβ the shift amount to get the write data support. writing? also fundamental.NVME_CMBSZ_SZU_SHIFTβ the shift amount to get the size units. units!! so we know what scale we're on.NVME_CMBSZ_SZ_SHIFTβ the shift amount to get the size. yes, THE size. main character number.NVME_CMBSZ_SQS_MASKβ mask to get the submission queue support. masking is self-care.NVME_CMBSZ_CQS_MASKβ mask to get the completion queue support.NVME_CMBSZ_LISTS_MASKβ mask to get the PLP SGL list support.NVME_CMBSZ_RDS_MASKβ mask to get the read data support.NVME_CMBSZ_WDS_MASKβ mask to get the write data support.NVME_CMBSZ_SZU_MASKβ mask to get the size units.NVME_CMBSZ_SZ_MASKβ mask to get the size.NVME_CMBSZ_SZU_4Kβ 4 KiB. tiny but fierce πNVME_CMBSZ_SZU_64Kβ 64 KiB. a lil bigger, still cute.NVME_CMBSZ_SZU_1Mβ 1 MiB. now we're talking.NVME_CMBSZ_SZU_16Mβ 16 MiB. lowkey spacious.NVME_CMBSZ_SZU_256Mβ 256 MiB. highkey roomy.NVME_CMBSZ_SZU_4Gβ 4 GiB. big slay energy π₯NVME_CMBSZ_SZU_64Gβ 64 GiB. huge. massive. periodt. π
mwah π this was the enum nvme_cmbsz page from libnvme(2), dated July 2026. stay nerdy, stay hydrated π¦β¨
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms