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. seestruct 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
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms