libnvme(9)
π libnvme(9) β bestie's guide to enum nvme_host_metadata_cdw11
okay so this is a page straight out of the libnvme(9) API Manual, and it's a tiny one β literally one enum β but it's lowkey iconic because it's all about the Host Metadata Features (that's 7Dh/7Eh/7Fh for the opcode girlies) and specifically Command Dword 11. yes, that Command Dword 11. π
β¨ NAME β¨
enum nvme_host_metadata_cdw11 β Host Metadata Features (7Dh/7Eh/7Fh) β Command Dword 11
like, that's the whole name. it's giving "I contain multitudes but only one dword." π
πΈ SYNOPSIS πΈ
enum nvme_host_metadata_cdw11 {
NVME_HOST_METADATA_GDHM ,
NVME_HOST_METADATA_EA_SHIFT ,
NVME_HOST_METADATA_EA_MASK
};
three constants. that's it. that's the enum. no cap, sometimes small is beautiful π¦
π Constants π
NVME_HOST_METADATA_GDHMβ Generate Default Host Metadata. and listen, this one is exclusive: it only works with the Get Features Command Dword 11. Get Features only. don't try it anywhere else, bestie, it's not that girl in other contexts πNVME_HOST_METADATA_EA_SHIFTβ the shift amount you use to set the Element Action (EA) field. and this one? Set Features Command Dword 11 only. yes, the Set Features one. very specific. very main character. βNVME_HOST_METADATA_EA_MASKβ the mask you use to set EA. that's it, that's the vibe check, it masks and it slays π
fr fr, keep the Get Features / Set Features split straight in your head βNVME_HOST_METADATA_GDHMis Get Features Command Dword 11 only, andNVME_HOST_METADATA_EA_SHIFTis Set Features Command Dword 11 only. swapping them is not the move π
and that's the whole page, bestie β short, sweet, and every constant accounted for. obsessed. π«Ά
mwah π β this was the libnvme(9) page, enum nvme_host_metadata_cdw11, dated October 2026. go forth and set your EA field correctly β¨
π¦ 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