libnvme(2)

✨ libnvme(2) β€” API Manual ✨

okay bestie, welcome to the libnvme era πŸ’œ this is section 2 of the manual, the API corner of the world, and today's main character is a lil struct that just wants to tell you how many endurance groups there are. no cap.


🌸 NAME 🌸

struct nvme_id_endurance_group_list β€” Endurance Group List πŸ¦‹

like. it's literally a list. of endurance groups. the name ate and left no crumbs.


✨ SYNOPSIS ✨

struct nvme_id_endurance_group_list {
    __le16 num;
    __le16 identifier[NVME_ID_ENDURANCE_GROUP_LIST_MAX];
};

that's the whole vibe right there πŸ’… two little members living their best life.


πŸŽ€ Members πŸŽ€

  • num β€” Number of Identifiers πŸ”’ fr fr, that's what it holds, that's literally its whole job.
  • identifier β€” Endurance Group Identifier πŸ‘‘ the actual IDs themselves, chillin' in an array.

lowkey important: both of these are __le16, so they're little-endian, and the array is capped at NVME_ID_ENDURANCE_GROUP_LIST_MAX entries. nothing extra, nothing invented, just the facts bestie 🫢

anyway, that's the page!! this little guy came from the libnvme(2) manual, dated July 2026, filed under struct nvme_id_endurance_group_list. slay, bye, drink water πŸ“πŸ§šπŸ’–

πŸ“¦ where this page comes from