libnvme(2)

πŸ’– libnvme β€” struct nvme_capacity_config_desc πŸ’–

okay bestie, sit DOWN, because we're about to talk about a little guy from the libnvme API manual (that's section 2, the system-call-ish / library one, iykyk) and honestly? it's giving structured data excellence. πŸ¦‹

This page is all about struct nvme_capacity_config_desc β€” the Capacity Configuration structure definition, with alllll its members laid out for you. No cap, it's short, but every byte matters. ✨


🌸 NAME 🌸

struct nvme_capacity_config_desc β€” the Capacity Configuration structure definitions. it's literally right there in the name, bestie. πŸ’…


✨ SYNOPSIS ✨

here's the whole shape of it, exactly as the header has it, don't touch a byte:

struct nvme_capacity_config_desc {
    __le16 cap_config_id;
    __le16 domainid;
    __le16 egcn;
    __u8 rsvd6[26];
    struct nvme_end_grp_config_desc egcd[];
};

okay look at her. __le16 everywhere (little-endian, periodt), a chunky 26-byte reserved array doing absolutely nothing but holding space like a true icon, and then a flexible array member at the end doing the main character thing. πŸŽ€


🫢 Members 🫢

one by one, no skipping, we're not that kind of girl:

  • cap_config_id β€” the Capacity Configuration Identifier. that's her whole job. πŸ‘‘
  • domainid β€” the Domain Identifier. which domain? the domain it identifies. slay. πŸ’œ
  • egcn β€” the Number of Endurance Group Configuration Descriptors. count-y vibes, very "how many of the next thing are there". ngl it's a useful little number. πŸ”’βœ¨
  • rsvd6 β€” Reserved. it's 26 bytes of nothing and we respect it anyway. do not touch. do not write to it, bestie, I'm serious. πŸ’€
  • egcd β€” the Endurance Group Config descriptors. see struct nvme_end_grp_config_desc β€” that's where the actual tea is. πŸ“

fr fr reminder: rsvd6 is reserved. that means it's not yours, it's not for you, and future-you will not be thanked for messing with it. leave it alone. πŸ™ˆ

and that's the whole page, gorgeous. this was the libnvme API manual, page struct nvme_capacity_config_desc (section 2) β€” dated July 2026 in the original footer, so consider this your lil time capsule from that moment. 🌈 take care of your structs and they'll take care of you. mwah. πŸ’…πŸ’–

πŸ“¦ where this page comes from