libnvme(9)
π libnvme(9) β the API Manual, bestie
okay so you're looking at the libnvme API manual, specifically the page for one very specific little struct. yes it's a page in section 9. no i will not stop being excited about it. π
β¨ NAME β¨
struct nvme_supported_ctrl_state_formats β the Supported Controller State Formats Data Structure, aka the thing you get from CNS 20h. it's giving "i am a very niche struct and i know it" and honestly? iconic. π
πΈ SYNOPSIS πΈ
look at her. she's literally just three members. so demure. so mindful.
struct nvme_supported_ctrl_state_formats {
__u8 nv;
__u8 nuuid;
__u8 data[4094];
};
fr fr,datais4094bytes. not4096. not4095.4094. the math is mathing becausenv+nuuid+4094=4096. she ate and left no crumbs. π
π¦ Members π¦
nvβ the Number of Versions (NV) chillin' in the NVMe Controller State Version list, which lives right at the start ofdata. that's the count of how many version entries you're about to read. slay. β¨nuuidβ the Number of UUIDs (NUUID) in the Vendor Specific Controller State UUID Supported list. and where's that list? immediately following the NVMe Controller State Version list indata. the way she just stacks them back to backβ¦ πdataβ the main character energy of this whole struct, ngl. it holds the NVMe Controller State Version list (that'snv__le16entries) immediately followed by the Vendor Specific Controller State UUID Supported list (that'snuuid128-bit UUID entries). so it's two lists in a trench coat, one buffer, zero drama. π«Ά
π heads up: the order matters here, bestie. versions first, UUIDs second, immediately after. don't go rearranging her. no cap.
π SEE ALSOβ¦ wait, there isn't one
bestie there is genuinely no SEE ALSO section on this page. it's just vibes and a struct. i checked. π
and that's the whole page, you're so welcome π β this little love letter comes to you from libnvme(9), the API Manual, dated October 2026, and the footer is literally just struct nvme_supported_ctrl_state_formats and libnvme(9) again because she likes her name. periodt. π
β¨
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms