libnvme(9)

πŸ“¦ version 3.2, in arch rolling

🌸 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