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 thestruct nvme_boot_partition.bpinfofield. shift it, bestie β¨NVME_BOOT_PARTITION_INFO_ABPID_SHIFTβ the shift amount you use to get the active boot partition ID out of thestruct nvme_boot_partition.bpinfofield. 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 thestruct nvme_boot_partition.bpinfofield. mask on, facts stay on πNVME_BOOT_PARTITION_INFO_ABPID_MASKβ the mask you use to get the active boot partition ID out of thestruct nvme_boot_partition.bpinfofield. 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
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms