libnvme(9)
π¦ libnvme β enum nvme_constants π¦
okay bestie, welcome to <libnvme(9)>, the API Manual page for section 9, and honestly? this one is just a big lil treasure chest of numbers. it's the enum nvme_constants β "A place to stash various constant nvme values" (the manpage said it, not me, but likeβ¦ accurate π
).
β¨ NAME β¨
enum nvme_constants β a place to stash various constant nvme values. yes literally, that's the whole vibe: it's the junk drawer but make it iconic π
πΈ 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 ,
NVME_UNDERLYING_NS_LIST_MAX
};
look at her. thirty-ish constants, all chilling in one enum. no cap, this is the whole roster π«Ά
π CONSTANTS π
okay so this is the part where we go one by one, and yes i'm gonna gas up every single one of them, they ALL matter β¨
NVME_NSID_ALLβ a broadcast value, used to specify all namespaces. it's giving "everyone's invited to the party" πNVME_NSID_NONEβ the invalid namespace id, for when thensidparameter just isn't used in a command. she's not ghosting you, she's not applicable πNVME_UUID_NONEβ use this to omit auuidcommand parameter π¦NVME_CNTLID_NONEβ use this to omit acntlidcommand parameter π¦NVME_CNSSPECID_NONEβ use this to omit acns_specific_idcommand parameter π¦NVME_LOG_LSP_NONEβ use this to omit a loglspcommand parameter π¦NVME_LOG_LSI_NONEβ use this to omit a loglsicommand parameter π¦NVME_LOG_LPO_NONEβ use this to omit a loglpocommand parameter π¦NVME_IDENTIFY_DATA_SIZEβ the transfer size fornvmeidentify commands π¦NVME_LOG_SUPPORTED_LOG_PAGES_MAXβ the largest possible index in the supported log pages log π₯NVME_ID_NVMSET_LIST_MAXβ the largest possiblenvmsetindex in identify nvmeset πNVME_ID_UUID_LIST_MAXβ the largest possibleuuidindex 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 (i.e. with the LBA Format Extension Enable field set to1hin the Host Behavior Support feature). yes that's a mouthful, drink some water first π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. spec said it, we just repeat it, periodt π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 = don't touch, bestie π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 πΈNVME_STREAM_ID_MAXβ max number of stream IDs πΈNVME_UNDERLYING_NS_LIST_MAXβ the maximum number of Underlying Namespace Entry data structures reportable in the Get Underlying Namespace List Identify data structure π
ngl the vibes here are immaculate: tiny enum, huge main character energy, and every single one of these constants ate π β¨
and that's the page!! source/version is API Manual, page libnvme(9), dated October 2026 β so like, if you're reading this in October 2026, we're literally synced up π«Ά byeee, go forth and reference your constants responsibly π¦ππ₯
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms