libnvme(2)

✨ libnvme(2) β€” the API Manual, bestie edition ✨

okay so real talk, this is a page from libnvme, section 2 (aka the API Manual), and today's main character is a tiny lil enum that does exactly one job: telling nvme_get_version which version you want back. that's it. that's the whole vibe. πŸŽ€


🌸 NAME 🌸

enum nvme_version β€” the selector for the version that @nvme_get_version is gonna hand back to you. literally its entire personality. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

enum nvme_version {
    NVME_VERSION_PROJECT ,
    NVME_VERSION_GIT

};

look at her. two members, zero drama. πŸ‘‘


🌈 Constants 🌈

so these are the two options you get to pick from, no cap:

  • NVME_VERSION_PROJECT β€” the project release version. like, the actual shipped-and-tagged version vibe. πŸ“¦βœ¨
  • NVME_VERSION_GIT β€” the git reference. the "what commit are we even on rn" energy. 🌿
ngl there are only two of them, so you can't really mess this up. pick the project one if you want the release, pick the git one if you want the ref. periodt. πŸ’–

and that's the whole page, bestie, you ate it 🫢 β€” this was enum nvme_version from libnvme(2), dated July 2026, mwah, slay, bye πŸ‘‹πŸ’œ

πŸ“¦ where this page comes from