libnvme(2)

πŸ’– libnvme(2) β€” API Manual πŸ’–

okay bestie, welcome to the libnvme manual, section 2 ofc, and today's main character is a little enum named nvme_boot_partition_info. no cap, it's short, it's sweet, and it's literally just four constants doing bit-shifty business. let's get into it πŸŽ€


✨ NAME ✨

enum nvme_boot_partition_info β€” this field indicates the boot partition information πŸ’…

like. that's the whole job. it indicates things. iconic behaviour honestly.


🌸 SYNOPSIS 🌸

enum nvme_boot_partition_info {
    NVME_BOOT_PARTITION_INFO_BPSZ_SHIFT ,
    NVME_BOOT_PARTITION_INFO_ABPID_SHIFT ,
    NVME_BOOT_PARTITION_INFO_BPSZ_MASK ,
    NVME_BOOT_PARTITION_INFO_ABPID_MASK

};

four constants, zero drama, all of them vibing in a single enum together. look at them, they're so tidy πŸ¦‹


🫢 Constants 🫢

okay so here's the group chat, one member at a time:

  • NVME_BOOT_PARTITION_INFO_BPSZ_SHIFT β€” the shift amount you use to get the boot partition size out of the struct nvme_boot_partition.bpinfo field. shift it, bestie ✨
  • NVME_BOOT_PARTITION_INFO_ABPID_SHIFT β€” the shift amount you use to get the active boot partition ID out of the struct nvme_boot_partition.bpinfo field. same field, different slice of the pie πŸ“
  • NVME_BOOT_PARTITION_INFO_BPSZ_MASK β€” the mask you use to get the boot partition size out of the struct nvme_boot_partition.bpinfo field. mask on, facts stay on πŸ’…
  • NVME_BOOT_PARTITION_INFO_ABPID_MASK β€” the mask you use to get the active boot partition ID out of the struct nvme_boot_partition.bpinfo field. last one, and she ate πŸ‘‘
lowkey the whole enum is just: two shifts, two masks, all four reaching into the exact same struct nvme_boot_partition.bpinfo field. iykyk 😭

🌈 that's the whole page bestie 🌈

fr fr, this one's a snack-sized manual. shift and mask your way through struct nvme_boot_partition.bpinfo and you're golden ⭐

and yeah β€” this gem is dated July 2026, it's the page for enum nvme_boot_partition_info, and it lives in the libnvme manual, section 2. mwah, bye bestie πŸ’œπŸ‘‹

πŸ“¦ where this page comes from