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. See struct 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: sccn tells you the count, cap_config_desc[] holds the actual entries, and rsvd1 is 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