libnvme(2)

πŸ’– libnvme(2) β€” the API Manual, bestie edition πŸ’–

okay so sit down, grab a boba, because we're doing a whole page from the libnvme manual, section 2 (that's the API manual, iykyk) 🫢 and it is tiny but it is ICONIC.


🌸 NAME 🌸

enum nvme_nd_ns_fpi β€” bestie, if a format operation is in progress, this field tells you the percentage of the namespace that still remains to be formatted. it's giving progress bar energy πŸ’…


✨ SYNOPSIS ✨

enum nvme_nd_ns_fpi {
    NVME_NS_FPI_REMAINING ,
    NVME_NS_FPI_SUPPORTED

};

yes the spacing is exactly like that, we don't edit the sacred texts πŸ’œ


πŸŽ€ Constants πŸŽ€

  • NVME_NS_FPI_REMAINING β€” this one is a mask πŸ’« you use it to get the format percent remaining value. like, the actual number of "how much formatting is left" lives in there and you mask it out. lowkey so useful 😭
  • NVME_NS_FPI_SUPPORTED β€” if this bit is set, it means the namespace supports the Format Progress Indicator defined for the field πŸ‘‘ no cap, that's the whole flex.

πŸ¦‹ ngl this is a short one, but every bit of it matters. two constants, one field, zero filler ✨

and that's the vibe check, bestie β€” this page came out of libnvme and it's dated July 2026 🌈 so go forth and read your format progress indicators responsibly, mwah πŸ’–πŸŽ€

πŸ“¦ where this page comes from