libnvme(2)
π NAME π
okay bestie so this is enum nvme_constants β literally just a lil stash spot where all the β¨magic nvme numbersβ¨ live. A place to stash various constant nvme values. that's it. that's the whole vibe π
πΈ 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
};
look at all of them. thirty of them. iconic. no notes π
β¨ Constants β¨
ngl every single one of these gets its own little moment, so let's go π«Ά
NVME_NSID_ALLβ a broadcast value, used to say "yeah give me ALL the namespaces" πNVME_NSID_NONEβ the invalid namespace id, for when thensidparameter just... isn't used in a command. ghosted fr πNVME_UUID_NONEβ use this when you wanna omit auuidcommand parameterNVME_CNTLID_NONEβ use this when you wanna omit acntlidcommand parameterNVME_CNSSPECID_NONEβ use this when you wanna omit acns_specific_idcommand parameterNVME_LOG_LSP_NONEβ use this when you wanna omit a loglspcommand parameterNVME_LOG_LSI_NONEβ use this when you wanna omit a loglsicommand parameterNVME_LOG_LPO_NONEβ use this when you wanna omit a loglpocommand parameterNVME_IDENTIFY_DATA_SIZEβ the transfer size for nvme identify commands. big important number energy π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 nvmesetNVME_ID_UUID_LIST_MAXβ the largest possible uuid index in identify uuid listNVME_ID_CTRL_LIST_MAXβ the largest possible controller index in identify controller listNVME_ID_NS_LIST_MAXβ the largest possible namespace index in identify namespace listNVME_ID_SECONDARY_CTRL_MAXβ the largest possible secondary controller index in identify secondary controllerNVME_ID_DOMAIN_LIST_MAXβ the largest possible domain index in the in domain listNVME_ID_ENDURANCE_GROUP_LIST_MAXβ the largest possible endurance group index in the endurance group listNVME_ID_ND_DESCRIPTOR_MAXβ the largest possible namespace granularity index in the namespace granularity descriptor listNVME_FEAT_LBA_RANGE_MAXβ the largest possible LBA range index in feature lba range typeNVME_LOG_ST_MAX_RESULTSβ the largest possible self test result index in the device self test logNVME_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. reserved = do not touch bestie πNVME_DSM_MAX_RANGESβ the largest possible range index in a data-set management commandNVME_NQN_LENGTHβ max length for NVMe Qualified NameNVMF_TRADDR_SIZEβ max Transport Address sizeNVMF_TSAS_SIZEβ max Transport Specific Address Subtype sizeNVME_ZNS_CHANGED_ZONES_MAXβ max number of zones in the changed zones log pageNVME_STREAM_ID_MAXβ max number of stream IDs π₯
fr fr that's the whole page. thirty constants, zero filler, all vibes. save this in your brain's mental bookmarks bestie π§
π and that's a wrap on libnvme(2) β this one's from the API Manual, page enum nvme_constants, dated July 2026. mwah, go write some banger kernel-adjacent code π
β¨
π¦ 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