libnvme(9)
π libnvme(9) β API Manual β¨
okay so real talk, bestie, we're in the libnvme API Manual and today's main character is a little enum called nvme_nvm_id_ns_pic β that's the Protection Information Capabilities situation, and honestly? it's giving bitfield excellence π
πΈ NAME πΈ
enum nvme_nvm_id_ns_pic β Protection Information Capabilities. that's it, that's the whole vibe. it's an enum, it holds the shift and mask constants you need to go digging around in the Protection Information Capabilities field, and it ate π
β¨ SYNOPSIS β¨
enum nvme_nvm_id_ns_pic {
NVME_NVM_PIC_PITPS16B_SHIFT ,
NVME_NVM_PIC_PITPS16B_MASK ,
NVME_NVM_PIC_PISTM16B_SHIFT ,
NVME_NVM_PIC_PISTM16B_MASK ,
NVME_NVM_PIC_STCRS_SHIFT ,
NVME_NVM_PIC_STCRS_MASK ,
NVME_NVM_PIC_QPIFS_SHIFT ,
NVME_NVM_PIC_QPIFS_MASK
};
like, look at her. eight constants, no notes π₯
π¦ Constants π¦
okay so let's go through the whole squad one by one, no skips, we do not leave anyone on read π
NVME_NVM_PIC_PITPS16B_SHIFTβ the shift amount to get 16b Guard Protection Information Storage Tag Support. it's a shift, it shifts, iconic behavior β¨NVME_NVM_PIC_PITPS16B_MASKβ the mask to get 16b Guard Protection Information Storage Tag Support. pair her with the shift above and you're literally unstoppable π«ΆNVME_NVM_PIC_PISTM16B_SHIFTβ the shift amount to get 16b Guard Protection Information Storage Tag Mask. yes bestie, different thing than the first one, don't mix them up πNVME_NVM_PIC_PISTM16B_MASKβ the mask to get 16b Guard Protection Information Storage Tag Mask. mask girl summer πNVME_NVM_PIC_STCRS_SHIFTβ the shift amount to get Storage Tag Check Read Support. lowkey my fave of the shift girlies πΈNVME_NVM_PIC_STCRS_MASKβ the mask to get Storage Tag Check Read Support. she's the matching set, we love a coordinated moment πNVME_NVM_PIC_QPIFS_SHIFTβ the shift amount to get Qualified Protection Information Format Support. say that five times fast, fr fr πNVME_NVM_PIC_QPIFS_MASKβ the mask to get Qualified Protection Information Format Support. last one, and she understood the assignment π
ngl the whole "SHIFT + MASK" pattern is the classic move: shift to line the bits up, mask to keep only the bits you want. that's just how the constants are named and described here, no extra lore from me, i'm not gonna make up behavior π
β cute sign-off β
and that's the page!! this one's from the libnvme(9) API Manual β enum nvme_nvm_id_ns_pic, dated October 2026. go forth and mask responsibly, 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