libnvme(2)

πŸ’– libnvme β€” the enum nvme_lbaf_rp page πŸ’–

okay bestie, buckle up, we're in the libnvme API manual ✨ (that whole libnvme(2) thing, yes, that's us, hi πŸ‘‹).


🌸 NAME 🌸

enum nvme_lbaf_rp β€” this field tells you how fast one LBA format is compared to the other LBA formats your controller supports. it's literally a little ranking system for your LBA formats, and it's giving leaderboard energy πŸ‘‘


✨ SYNOPSIS ✨

enum nvme_lbaf_rp {
    NVME_LBAF_RP_BEST ,
    NVME_LBAF_RP_BETTER ,
    NVME_LBAF_RP_GOOD ,
    NVME_LBAF_RP_DEGRADED ,
    NVME_LBAF_RP_MASK

};

yes the spacing before the commas is on purpose, that's just how the header does it, we do not fight the header πŸ’…


πŸŽ€ Constants πŸŽ€

  • NVME_LBAF_RP_BEST β€” the absolute bestie-tier performance. top of the podium, no notes. πŸ₯‡
  • NVME_LBAF_RP_BETTER β€” better performance. not the crown, but still eating. πŸ₯ˆ
  • NVME_LBAF_RP_GOOD β€” good performance. solid, dependable, does the job, we respect it. ✨
  • NVME_LBAF_RP_DEGRADED β€” degraded performance. yeah... it's not having a great day, performance-wise 😭
  • NVME_LBAF_RP_MASK β€” this one's the mask you use to pull the relative performance value out of the field. the little extractor tool, the tweezers of the enum 🫢

fr fr: every one of those five constants lives in that enum, in that exact order, and the mask is how you get the value out. no cap.

and that's the whole vibe, bestie β€” this page came out of the libnvme API manual, page enum nvme_lbaf_rp, dated July 2026. libnvme(2) forever. mwah πŸ’‹πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from