libnvme(2)

πŸ’– NAME πŸ’–

okay so bestie, welcome to libnvme β€” this one's all about enum nvme_lbart, aka the LBA Range Type - Data Structure Entry. it's giving "which chunks of my drive are for what" energy and honestly? iconic. πŸŽ€

this is page 2 of the API Manual, so buckle up, we're in the library, not the command line 🫢


✨ SYNOPSIS ✨

no cap, here's the whole thing, verbatim, every constant in order:

enum nvme_lbart {
    NVME_LBART_TYPE_GP ,
    NVME_LBART_TYPE_FS ,
    NVME_LBART_TYPE_RAID ,
    NVME_LBART_TYPE_CACHE ,
    NVME_LBART_TYPE_SWAP ,
    NVME_LBART_ATTRIB_TEMP ,
    NVME_LBART_ATTRIB_HIDE

};

that's the vibe. seven little members, all living together in one enum πŸ’…


🌸 Constants 🌸

okay so each one of these is a member of the enum above, and each one comes with its own lil description. no skipping, we're doing all seven πŸ¦‹

  • NVME_LBART_TYPE_GP β€” General Purpose. the default girlie, does a bit of everything πŸ’«
  • NVME_LBART_TYPE_FS β€” Filesystem. this range is where your actual files live πŸ“
  • NVME_LBART_TYPE_RAID β€” RAID. raid business happening in this range, periodt πŸ”₯
  • NVME_LBART_TYPE_CACHE β€” Cache. it's the fast lil stash, holding things so they're ready when you need them ✨
  • NVME_LBART_TYPE_SWAP β€” Page / swap file. yes bestie, paging and swap can call this range home πŸ“
  • NVME_LBART_ATTRIB_TEMP β€” Temp. temporary. it's giving "not staying long" πŸ™ˆ
  • NVME_LBART_ATTRIB_HIDE β€” Hidden. hidden from view, sneaky but make it classy πŸ’€
heads up: two of these are attributes (NVME_LBART_ATTRIB_TEMP and NVME_LBART_ATTRIB_HIDE) while the other five are types β€” that's literally how the original labels them, so we're keeping it exactly like that, no merging, no renaming, fr fr πŸ‘‘

okay that's the whole page bestie!! no notes, we covered every single constant and every single description, nothing left behind πŸ’œ

this lil gem came out of the enum nvme_lbart corner of libnvme(2), dated July 2026. go forth, tag your LBA ranges, and slay πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from