libnvme(9)
π libnvme(9) π
okay bestie, welcome to the API Manual β yes that's the manual name, we're not being weird about it, it's just the libnvme API docs and this one is specifically about one little enum. and honestly? it's giving "small but mighty." π¦
β¨ NAME β¨
enum nvme_id_ns_dps β this field is the whole vibe-check for the Type settings of the end-to-end data protection feature. like, it literally tells you what kind of protection information is going on. no cap. π
πΈ SYNOPSIS πΈ
enum nvme_id_ns_dps {
NVME_NS_DPS_PI_NONE ,
NVME_NS_DPS_PI_TYPE1 ,
NVME_NS_DPS_PI_TYPE2 ,
NVME_NS_DPS_PI_TYPE3 ,
NVME_NS_DPS_PI_SHIFT ,
NVME_NS_DPS_PI_MASK ,
NVME_NS_DPS_PI_FIRST_SHIFT ,
NVME_NS_DPS_PI_FIRST_MASK ,
NVME_NS_DPS_PI_FIRST
};
look at her. nine constants. absolutely iconic lineup, no notes. π
π Constants π
NVME_NS_DPS_PI_NONEβ protection information is not enabled. we're just out here living unprotected, raw-dogging the metadata, and that's a whole choice. πNVME_NS_DPS_PI_TYPE1β protection information is enabled, Type 1 babyyy. β¨NVME_NS_DPS_PI_TYPE2β protection information is enabled, Type 2. different type, same slay. πNVME_NS_DPS_PI_TYPE3β protection information is enabled, Type 3. the third one. the trilogy is complete. π₯NVME_NS_DPS_PI_SHIFTβ the protection information type shift. yes bestie, it shifts. that's the whole job. π«ΆNVME_NS_DPS_PI_MASKβ the mask you AND with to actually get the value of the PI type. mask on, facts out. πNVME_NS_DPS_PI_FIRST_SHIFTβ the shift for "protection information in the first bytes." first bytes! main character bytes! βNVME_NS_DPS_PI_FIRST_MASKβ the mask for "protection information in the first bytes." pairs perfectly with the shift above, they're literally a matching set. πNVME_NS_DPS_PI_FIRSTβ if this bit is set, it indicates that the protection information, if enabled, gets transferred as the first eight bytes of metadata. eight. whole. bytes. of. metadata. right up front, first thing in the door. π (and yeah, it's conditional β if enabled β don't forget that part, it's load-bearing.) π§
quick reminder bestie:NVME_NS_DPS_PI_NONEmeans protection information isn't enabled at all, andNVME_NS_DPS_PI_FIRSTonly does anything when the protection information is actually enabled. read the fine print, it's cute. π
and that's the whole page!! π¦πβ¨ππΈπ«Ά
kisses, this was enum nvme_id_ns_dps from libnvme(9), source/version enum nvme_id_ns_dps, dated October 2026. go forth and protect your data end-to-end, bestie. periodt. π
π
π¦ 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