libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’– libnvme(9) πŸ’–

okay so bestie, welcome to the API Manual β€” yes that's the manual name, we're fancy here β€” and today's main character is a struct. literally a struct. don't scroll away, it's cute, I promise 🫢


✨ NAME ✨

struct nvme_zone_report β€” the Report Zones Data Structure. that's it, that's the whole vibe check. it's giving "I hold zone descriptors and I'm not sorry" 🌸


✨ SYNOPSIS ✨

here's the whole thing, no cap, exactly as it lives:

struct nvme_zone_report {
    __le64 nr_zones;
    __u8 rsvd8[56];
    struct nvme_zns_desc    entries[];
 };

look at her. three members. one of them is literally an array with no size because she's flexible like that πŸ’…


✨ Members ✨

okay so let's go member by member, because every single one matters and I refuse to skip any of them:

  • nr_zones β€” the Number of descriptors in entries. she's the counter, the headcount, the "how many besties are coming to the party" field. __le64, so little-endian, iykyk πŸŽ€
  • rsvd8 β€” Reserved. that's it. that's the whole description. it's a __u8 rsvd8[56] and it is Reserved. do not touch her, do not look at her, she is simply Reserved and living her life πŸ’€
  • entries β€” the Zoned namespace descriptors. this is the actual good stuff, the payload, the reason we're all here. it's a struct nvme_zns_desc flexible array member β€” main character energy for real πŸ”₯
bestie note: entries has no declared size in the brackets. that's not me being sloppy, that's exactly how it's written. don't come for me πŸ™ˆ

🌈 that's the whole page 🌈

no hidden options, no environment variables, no exit statuses, no SEE ALSO β€” this struct keeps it minimal and honestly? iconic. obsessed. periodt πŸ’œ


sign-off time, because the footer deserves love too: this little page comes from libnvme(9), the struct nvme_zone_report entry in the API Manual, and it's dated October 2026 β€” so bookmark it, screenshot it, send it to the group chat, whatever you need πŸ§šπŸ’–β­

πŸ“¦ where this page comes from