libnvme(2)
β¨ NAME β¨
okay so bestie, welcome to libnvme(2), the API manual π and today's main character is:
enum nvme_vs β this field indicates the version π
that's it. that's the whole vibe. it tells you the version. iconic behavior honestly.
πΈ SYNOPSIS πΈ
enum nvme_vs {
NVME_VS_TER_SHIFT ,
NVME_VS_MNR_SHIFT ,
NVME_VS_MJR_SHIFT ,
NVME_VS_TER_MASK ,
NVME_VS_MNR_MASK ,
NVME_VS_MJR_MASK
};
π Constants π
six little constants, all serving absolute cunt. here's the rundown, no cap π«Ά
NVME_VS_TER_SHIFTβ the shift amount you use to get the tertiary version. that's its whole job and it does it flawlessly β¨NVME_VS_MNR_SHIFTβ the shift amount that gets you the minor version. minor in name, major in impact honestly πNVME_VS_MJR_SHIFTβ the shift amount for the major version. the big sister of the trio, the one everybody asks about at the function πNVME_VS_TER_MASKβ the mask that gets you the tertiary version. masking but make it useful πNVME_VS_MNR_MASKβ the mask for the minor version. quietly doing the most, as always π¦NVME_VS_MJR_MASKβ the mask that gets you the major version. the way that it masksβ¦ obsessed π
fr fr bestie, that's every single one of them. threeSHIFTs and threeMASKs, one per version tier β tertiary, minor, major β and not a single one got skipped π
and that's the page! July 2026, the enum nvme_vs section, straight outta libnvme(2) β ty for coming to my ted talk, go shift some bits, ily, bye π
β¨πΈ
π¦ 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