libnvme(2)

🌸 libnvme(2) 🌸

okay bestie, welcome to the API Manual for libnvme β€” yes you're literally reading a manual page right now, and yes this one is short, so hydrate and let's go πŸ’…


✨ NAME ✨

enum nvme_bpinfo β€” this field indicates the boot partition information πŸ‘‘

(that's it. that's the whole vibe. boot partition info, in enum form, slay.)


πŸ¦‹ 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

};

look at her. ten whole constants. iconic. no cap, type them exactly like that or the compiler will simply not know her 😭


πŸ’– Constants πŸ’–

okay so these are the members, one by one, no skipping, we are NOT summarising today bestie 🫢

  • NVME_BPINFO_BPSZ_SHIFT β€” the shift amount you use to get the boot partition size. shift it, girl.
  • NVME_BPINFO_BRS_SHIFT β€” the shift amount you use to get the boot read status.
  • NVME_BPINFO_ABPID_SHIFT β€” the shift amount you use to get the active boot partition ID.
  • NVME_BPINFO_BPSZ_MASK β€” the mask that gets you the boot partition size. mask on, illuminate ✨
  • NVME_BPINFO_BRS_MASK β€” the mask that gets you the boot read status.
  • NVME_BPINFO_ABPID_MASK β€” the mask that gets you the active boot partition ID.
  • NVME_BPINFO_BRS_NONE β€” no boot partition read operation requested. like, nothing's happening, we're just chilling πŸ›‹οΈ
  • NVME_BPINFO_BRS_READ_IN_PROGRESS β€” boot partition read is in progress. hold on, she's working on it ⏳
  • NVME_BPINFO_BRS_READ_SUCCESS β€” boot partition read completed successfully. ATE. no crumbs left. πŸ”₯
  • NVME_BPINFO_BRS_READ_ERROR β€” error completing the boot partition read. it's giving disaster, bestie πŸ’€ scream, cry, check your bits.
real talk though: those four BRS_* values are the whole mood ring for a boot partition read β€” not requested, in progress, done, or broke. that's the status arc, and you're just reading it off the field πŸŽ€

and that's the page!! go forth and read your boot partition information like the main character you are πŸ‘‘πŸ’œ

this was enum nvme_bpinfo from the libnvme(2) manual, dated July 2026. byeee, ily, go read some enums 🧚✨

πŸ“¦ where this page comes from