libnvme(9)
π libnvme(9) β API Manual
okay bestie, sit down, because today we're looking at a page from the libnvme API manual and honestly? it's giving "tiny enum, huge lore." no cap. this is the libnvme(9) page and we're about to make it make sense. π«Ά
β¨ NAME β¨
enum nbft_ssns_trflags β the SSNS Transport Specific Flags Field (Figure 19). yes, that's the whole name. it's a mouthful and we love her for it. π
π¦ SYNOPSIS π¦
enum nbft_ssns_trflags {
NBFT_SSNS_TRFLAG_VALID ,
NBFT_SSNS_PDU_HEADER_DIGEST ,
NBFT_SSNS_DATA_DIGEST
};
like, that's it. three constants. tiny but iconic. the semicolon after the closing brace is right there and we are not going to argue with it. π
π Constants π
NBFT_SSNS_TRFLAG_VALIDβ "Transport Specific Flags in Use." so this one is literally just the vibe check for the whole descriptor: if it's set to1h, this descriptor is valid and you may proceed. if it's cleared to0h, this descriptor is not valid and you should respectfully back away. πͺNBFT_SSNS_PDU_HEADER_DIGESTβ the PDU Header Digest (HDGST) Flag. okay so: if it's set to1h, that means the host or administrator required the connection described by this Subsystem and Namespace Descriptor to use the NVM Header Digest Enabled. and here's the important bit β a consumer of this information should attempt to use NVM Header Digest when recreating this connection if enabled. π§
if it's cleared to 0h? then the host or administrator did not require the connection described by this Subsystem and Namespace Descriptor to use the NVM Header Digest Enabled. so, like, no requirement. that's it. don't read into it. πΈ
NBFT_SSNS_DATA_DIGESTβ the Data Digest (DDGST) Flag, the sequel π. if it's set to1h, the host or administrator required the connection described by this Subsystem and Namespace Descriptor to use the NVM Data Digest Enabled. if it's cleared to0h, then the host or administrator did not require the connection described by this Subsystem and Namespace Descriptor to use the NVM Data Digest Enabled. (real "same sentence, different flag" energy, we respect the consistency π)
and the consumer note for this one: a consumer of this field should attempt to use NVM Data Digest when recreating this connection if enabled. π
β οΈ friendly reminder bestie:1h= set = the thing is in use / required.0h= cleared = not in use / not required. don't flip them, i'm begging π. also note that the two digest flags both say a consumer should attempt to use the digest when recreating this connection, but only if enabled β that "if enabled" is doing a lot of work so please don't skip it. π₯
okay that's the whole page, you ate that. no crumbs. πβ¨
that was enum nbft_ssns_trflags from the libnvme API Manual, dated October 2026 β and the manual name is right up there at the top if you ever forget where you are. mwah, bye bestie ππ
π¦ 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