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
- 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