libnvme(2)
π libnvme(2) β the API Manual, bestie edition π
okay so you're deep in the libnvme API manual (yes, that's section 2, the library calls one, not the commands one) and you've landed on this little enum. it's giving very niche, very specific, very "you had to be there" β but i got you. let's get into it. π¦
β¨ NAME β¨
enum nvme_id_ns_dpc β this field is literally the vibe check on whether your namespace can do end-to-end data protection. that's it, that's the whole job. π
πΈ SYNOPSIS πΈ
enum nvme_id_ns_dpc {
NVME_NS_DPC_PI_TYPE1 ,
NVME_NS_DPC_PI_TYPE2 ,
NVME_NS_DPC_PI_TYPE3 ,
NVME_NS_DPC_PI_FIRST ,
NVME_NS_DPC_PI_LAST
};
π Constants π
each one of these is a little flag saying what your namespace can do. every single one starts with "If set, indicates that the namespace supportsβ¦" because they're all capability bits, bestie, they don't do anything on their own β they just tell you what's on the menu. π
NVME_NS_DPC_PI_TYPE1β if this one's set, the namespace supports Protection Information Type 1. slay. π₯NVME_NS_DPC_PI_TYPE2β if this one's set, the namespace supports Protection Information Type 2. iconic. β¨NVME_NS_DPC_PI_TYPE3β if this one's set, the namespace supports Protection Information Type 3. the trilogy is complete. πNVME_NS_DPC_PI_FIRSTβ if this one's set, the namespace supports protection information transferred as the first eight bytes of metadata. front of the line energy. πNVME_NS_DPC_PI_LASTβ if this one's set, the namespace supports protection information transferred as the last eight bytes of metadata. back of the line, but make it fashion. π
π reminder to my beloved: these are capabilities. "If set" means you have to actually go look at the field before you assume anything. don't be out here manifesting features your namespace doesn't have. π
π«Ά sign-off π«Ά
that's the whole page, and honestly? ate. no crumbs. this one shipped with libnvme (2) as part of the API Manual, dated July 2026. go forth and protect your data end-to-end, bestie. periodt. ππ
π¦ 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