libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… libnvme(9) β€” the API Manual, but make it make sense πŸŽ€

okay so bestie, welcome to the API Manual for libnvme, and today's main character is this little enum that's all about boot partition info πŸ¦‹ like, yes, we're going deep into the boot partition lore and honestly? obsessed.


✨ NAME ✨

enum nvme_bpinfo β€” literally this field is the whole boot partition information situation πŸ’– iykyk


🌸 SYNOPSIS 🌸

enum nvme_bpinfo {
    NVME_BPINFO_BPSZ_SHIFT ,
    NVME_BPINFO_BRS_SHIFT ,
    NVME_BPINFO_ABPID_SHIFT ,
    NVME_BPINFO_BPSZ_MASK ,
    NVME_BPINFO_BRS_MASK ,
    NVME_BPINFO_ABPID_MASK ,
    NVME_BPINFO_BRS_NONE ,
    NVME_BPINFO_BRS_READ_IN_PROGRESS ,
    NVME_BPINFO_BRS_READ_SUCCESS ,
    NVME_BPINFO_BRS_READ_ERROR

};

no cap, that's the whole lineup πŸ‘‘ copy it exactly, okay? these names are not vibe-flexible πŸ™ˆ


πŸ”₯ Constants πŸ”₯

bestie, here's every single one of them, in order, no skips, no cutting corners β€” periodt πŸ’…

  • NVME_BPINFO_BPSZ_SHIFT β€” the shift amount, and what does it shift? the boot partition size, that's what πŸ’«
  • NVME_BPINFO_BRS_SHIFT β€” shift amount that gets you the boot read status πŸ”
  • NVME_BPINFO_ABPID_SHIFT β€” shift amount for the active boot partition ID, main character energy fr ⭐
  • NVME_BPINFO_BPSZ_MASK β€” the mask that pulls out the boot partition size πŸŽ€
  • NVME_BPINFO_BRS_MASK β€” the mask that pulls out the boot read status 🧚
  • NVME_BPINFO_ABPID_MASK β€” the mask that pulls out the active boot partition ID πŸ’œ
  • NVME_BPINFO_BRS_NONE β€” no boot partition read operation was requested, like, zero reads, none, nada 🫢
  • NVME_BPINFO_BRS_READ_IN_PROGRESS β€” the boot partition read is in progress rn ⏳ (we're waiting, it's giving suspense)
  • NVME_BPINFO_BRS_READ_SUCCESS β€” boot partition read completed successfully, ate and left no crumbs βœ…πŸ”₯
  • NVME_BPINFO_BRS_READ_ERROR β€” error completing the boot partition read πŸ˜­πŸ’€ it happens to the best of us

lowkey reminder: these are constants in an enum, so keep the spellings exactly like that β€” BPSZ, BRS, ABPID β€” no renaming, no "fixing", no creative liberties 🫢✨

and that's the page bestie!! πŸŒˆπŸ’– that was the API Manual β€” libnvme(9) β€” dated October 2026, and yeah, the footer still says libnvme(9) too, because some things are iconic and stay iconic πŸ‘‘πŸ’… see you in the next manpage, mwah πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from