libnvme(9)
π libnvme(9) β API Manual, bestie edition π
okay so picture this: you're deep in libnvme (the API manual, to be exact), and you open up this one struct. It's called struct nvme_id_independent_id_ns, and it's literally the Identify - I/O Command Set Independent Identify Namespace Data Structure. That's a whole mouthful, I know, but stay with me β it's iconic, it's giving "namespace lore," and you're gonna slay this. β¨
πΈ NAME πΈ
struct nvme_id_independent_id_ns β the Identify - I/O Command Set Independent Identify Namespace Data Structure. yes that's the whole name. no we're not shortening it. periodt. π
β¨ SYNOPSIS β¨
here's the shape of it, bestie β copy it exactly, don't touch a single byte:
struct nvme_id_independent_id_ns {
__u8 nsfeat;
__u8 nmic;
__u8 rescap;
__u8 fpi;
__le32 anagrpid;
__u8 nsattr;
__u8 rsvd9;
__le16 nvmsetid;
__le16 endgid;
__u8 nstat;
__u8 kpios;
__le16 maxkt;
__u8 rsvd18[2];
__le32 rgrpid;
__u8 rsvd24[4072];
};
like, look at those little padding arrays. rsvd24[4072]?? it's carrying the whole struct on its back ngl. π«Ά
π¦ Members π¦ (the field-by-field vibe check)
nsfeatβ common namespace features. the basics. the foundation. the main character energy of the field list. πnmicβ Namespace Multi-path I/O and Namespace Sharing Capabilities. long name, big responsibilities. πrescapβ Reservation Capabilities. what it can reserve, iykyk. πfpiβ Format Progress Indicator. yes it's tracking the format. yes it's watching. πanagrpidβ ANA Group Identifier. (__le32, so little-endian, bestie β do not @ me.) βnsattrβ Namespace Attributes. the ~attributes~. very demure, very mindful. πΈrsvd9β reserved. nothing to see here, move along. πnvmsetidβ NVM Set Identifier. a__le16icon. π₯endgidβ Endurance Group Identifier. another__le16, living its best life. πnstatβ Namespace Status. how's the namespace doing? asknstat. πkpiosβ Key Per I/O Status. key-per-I/O? status. that's the whole thing. π¦maxktβ Maximum Key Tag.__le16. max. key. tag. slay. β¨rsvd18β Reserved. it's an array of2, it's just chillin'. π§rgrpidβ Reachability Group Identifier.__le32. reachability?? relatable fr fr. πrsvd24β Reserved.4072whole bytes of reserved. they're not doing anything and honestly? same. π
lowkey reminder: the rsvd* fields are reserved β hands off, no cap. don't go writing your fanfic into them. π«Ά
that's the whole struct, bestie. every byte accounted for, every reserved array respected, nothing invented, nothing skipped. you ate. π
this page is libnvme(9), from the API Manual β struct nvme_id_independent_id_ns, dated October 2026. mwah, go touch some namespaces. π
π¦ 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