libnvme(2)
π libnvme(2) β the API manual, bestie edition π
okay so. welcome to libnvme's API manual, and today's main character is a struct, because of course it is. sit down, grab a strawberry, we're doing this π
β¨ NAME β¨
struct nvme_supported_cap_config_list_log β the Supported Capacity Configuration list log page. that's it. that's the whole name. she's long, she's specific, she's iconic π
πΈ SYNOPSIS πΈ
here's the vibe, verbatim, no cap:
struct nvme_supported_cap_config_list_log {
__u8 sccn;
__u8 rsvd1[15];
struct nvme_capacity_config_desc cap_config_desc[];
};
look at her. three fields. one is a mystery (rsvd1), one is a count (sccn), and one is a flexible array that's literally just more structs. it's giving "the party's outside, come join" π¦
π«Ά Members π«Ά
sccnβ Number of capacity configuration. yes bestie, it's the count. it tells you how many capacity configs you're dealing with πrsvd1β Reserved. do not touch. do not poke. do not "just try something". it's reserved for a reason, and that reason is not you (affectionate) πcap_config_descβ Capacity configuration descriptor. Seestruct nvme_capacity_config_desc. this is the flexible array member at the end, the little "β¦and more!" of the struct world. go read that other struct, she has the details π
lowkey the whole game here is:sccntells you the count,cap_config_desc[]holds the actual entries, andrsvd1is off-limits. that's it. that's the struct. no notes π
π SEE ALSO π
struct nvme_capacity_config_descβ the descriptor struct this one points you toward. yes, you do have to go look at it. iykyk π₯
anyway bestie, that's the page. the struct is a list log page for supported capacity configurations, she's reserved in one field and generous in another, and honestly? we love a flexible array member. π§
this was the libnvme(2) API manual page for struct nvme_supported_cap_config_list_log, dated July 2026, and yes the footer said libnvme(2) again because she loves a little symmetry. mwah π slay, bye! πβ¨
π¦ 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