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. three SHIFTs and three MASKs, 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