libnvme(9)
π libnvme(9) β the API Manual, bestie edition
okay so real talk, this is a page from libnvme(9), aka the API Manual, and it's about one very specific little enum. she's small but she's important β she's the one holding all the bit-shifty secrets of the extended LBA format. π
β¨ NAME β¨
enum nvme_nvm_id_ns_elbaf β this field indicates the extended LBA format
like. that's her whole job. she indicates the extended LBA format. iconic behavior honestly π
πΈ SYNOPSIS πΈ
enum nvme_nvm_id_ns_elbaf {
NVME_NVM_ELBAF_STS_SHIFT ,
NVME_NVM_ELBAF_STS_MASK ,
NVME_NVM_ELBAF_PIF_SHIFT ,
NVME_NVM_ELBAF_PIF_MASK ,
NVME_NVM_ELBAF_QPIF_SHIFT ,
NVME_NVM_ELBAF_QPIF_MASK
};
six constants, zero drama, all in a row. she's giving "organized queen" energy fr fr π
π¦ Constants π¦
now the main character moment β let's meet the whole squad, one by one:
NVME_NVM_ELBAF_STS_SHIFTβ the shift you use to get the storage tag size. she slides those bits right into place β¨NVME_NVM_ELBAF_STS_MASKβ the mask that gets you the storage tag size, which is what you use to figure out the variable-sized storage tag/reference tag fields. lowkey the most useful one here ngl π«ΆNVME_NVM_ELBAF_PIF_SHIFTβ the shift for getting the protection information format. shifting = caring πNVME_NVM_ELBAF_PIF_MASKβ the mask that gets you the protection information format for the extended LBA format. yes, specifically for the extended one. read the label bestie π₯NVME_NVM_ELBAF_QPIF_SHIFTβ the shift for getting the Qualified Protection Information Format. capital Q, capital P, capital I, capital F β she's not like the other shifts πNVME_NVM_ELBAF_QPIF_MASKβ the mask that gets you the Qualified Protection Information Format. same deal, but masked. periodt π
ngl the whole page is basically "here's a shift, here's a mask, repeat three times" and honestly? that's the vibe. use the shift, then the mask, and the field is yours π§
and that's the tea, bestie π β this was libnvme(9), the API Manual, dated October 2026, closing out the enum nvme_nvm_id_ns_elbaf page. go shift some bits, you're gonna slay πβ¨
π¦ 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