libnvme(9)
πΈ NAME πΈ
okay so bestie, gather round β this is the libnvme API manual page for enum nvme_flbas, and it's literally the field that tells you the formatted LBA size. that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
here's the whole enum, copied exactly, no cap, character for character:
enum nvme_flbas {
NVME_FLBAS_LOWER_SHIFT ,
NVME_FLBAS_META_EXT_SHIFT ,
NVME_FLBAS_HIGHER_SHIFT ,
NVME_FLBAS_LOWER_MASK ,
NVME_FLBAS_META_EXT_MASK ,
NVME_FLBAS_HIGHER_MASK
};
six members, zero drama (well, okay, a little drama β it's giving "shifts and masks living in the same enum" energy π¦).
π CONSTANTS π
okay this is the part where we meet the cast. each one is a constant inside enum nvme_flbas, and here's what each one does:
NVME_FLBAS_LOWER_SHIFTβ the shift amount you use to pull out the format index's least significant 4 bits. yes, four bits. not three, not five. four. β¨NVME_FLBAS_META_EXT_SHIFTβ the shift amount to get the metadata transferred. that's the whole description, bestie, it's succinct and iconic.NVME_FLBAS_HIGHER_SHIFTβ shift amount for the format index's most significant 2 bits. two bits. the higher ones. main character energy for real πNVME_FLBAS_LOWER_MASKβ the mask that gets you the format index's least significant 4 bits. mask not shift, okay? don't mix them up, i'm begging πNVME_FLBAS_META_EXT_MASKβ the mask to get the metadata transferred. same deal as its shift buddy, different tool.NVME_FLBAS_HIGHER_MASKβ the mask for the format index's most significant 2 bits. masking > guessing, fr fr.
ngl the pattern here is chef's kiss:LOWER= 4 bits,HIGHER= 2 bits,META_EXT= metadata transferred. shifts to move it, masks to grab it. slay. π
and that's the whole page! no leftovers, no secret options hiding in the back. π«Ά
this little cutie came from the API Manual β libnvme(9), dated October 2026. consider yourself fully briefed, bestie. mwah. πππ¦πΈβ
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms