libnvme(2)

πŸ’– NAME πŸ’–

okay so bestie, gather round β€” this is libnvme, and this page is all about one very specific little struct:

struct nvme_id_independent_id_ns β€” aka the Identify - I/O Command Set Independent Identify Namespace Data Structure. yes that's a mouthful. yes it's iconic. no we are not shortening it. πŸ’…

It lives in the libnvme API manual, in section 2, so if you see libnvme(2) floating around that's just where we're at. πŸ¦‹


✨ SYNOPSIS ✨

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];
 };

look at her. 4072 bytes of reserved space and she still slays. πŸ‘‘


🌸 Members 🌸

okay now the main character energy β€” let's meet every single field, no skips, no cuts, fr fr:

  • nsfeat β€” the common namespace features. lowkey the basics but we love her. ✨
  • nmic β€” Namespace Multi-path I/O and Namespace Sharing Capabilities. it's giving β€œcan this namespace be shared tho” energy. 🫢
  • rescap β€” Reservation Capabilities. what she can reserve. periodt.
  • fpi β€” Format Progress Indicator. yes bestie, formats take time and she will tell you about it. ⏳
  • anagrpid β€” ANA Group Identifier. Asymmetric Namespace Access but make it a group chat id. πŸ’¬
  • nsattr β€” Namespace Attributes. the vibe check of the namespace itself.
  • rsvd9 β€” reserved. πŸ’€ do not touch. she's resting.
  • nvmsetid β€” NVM Set Identifier. which NVM set she belongs to. found family. πŸ₯°
  • endgid β€” Endurance Group Identifier. her endurance group β€” staying power, honestly iconic. πŸ”₯
  • nstat β€” Namespace Status. the "how's she doing" field. we love a status update. 🩺
  • kpios β€” Key Per I/O Status. Key Per I/O but a status. iykyk. πŸ”‘
  • maxkt β€” Maximum Key Tag. the biggest key tag allowed. big tag energy. 🏷️
  • rsvd18 β€” Reserved. another nap spot. πŸ™ˆ
  • rgrpid β€” Reachability Group Identifier. Reachability Group, as an id. she's reachable. she's available. πŸ’–
  • rsvd24 β€” Reserved. the final nap spot, and honestly? she earned it. 😴
no cap: some of these are literally just <red>reserved</red> and you should leave them alone. the manpage said reserved. we respect the reserved. 🫑

πŸŽ€ and that's the whole struct πŸŽ€

that's it bestie, that's the page. every field, every byte, every reserved lil nap zone accounted for. she's a whole data structure and she's doing great. 🌈

okay bye ily β€” this was the struct nvme_id_independent_id_ns page out of libnvme(2), stamped July 2026, brought to you by libnvme. mwah πŸ’‹ βœ¨πŸ¦‹πŸŒΈπŸ’œ

πŸ“¦ where this page comes from