libnvme(2)

πŸ’– NAME πŸ’–

struct nvme_resv_status β€” the Reservation Status Data Structure, bestie. It's literally the glow-up receipt for who's got a reservation held on your namespace ✨

So this is a page from the libnvme API manual β€” yes, the libnvme(2) girlies πŸŽ€ β€” and we're doing a deep dive on one struct, so grab your strawberry drink πŸ“ and let's go.


✨ SYNOPSIS ✨

struct nvme_resv_status {
    __le32 gen;
    __u8 rtype;
    __u8 regctl[2];
    __u8 rsvd7[2];
    __u8 ptpls;
    __u8 rsvd10[14];
    union {
      struct {
        __u8 rsvd24[40];
        struct nvme_registered_ctrl_ext regctl_eds[0];
      };
      struct nvme_registered_ctrl regctl_ds[0];
    };
 };

No cap, that union is doing main character energy 🫢


🌸 Members 🌸

Okay so here's the full member-by-member vibe check, and I'm listing every single one because we don't skip, periodt πŸ’…

  • gen β€” the Generation. It's giving "which version of the reservation sitch are we on" πŸ”₯
  • rtype β€” the Reservation Type. This is the what kind of reservation tea β˜•
  • regctl β€” Number of Registered Controllers. Like, how many controllers are on the guest list πŸ‘‘
  • rsvd7 β€” Reserved. Not for us, babe β€” hands off πŸ™ˆ
  • ptpls β€” Persist Through Power Loss State. Does the reservation survive the lights going out? This field knows πŸ’€βœ¨
  • rsvd10 β€” Reserved. Another little reserved moment, leave it alone πŸŽ€
  • {unnamed_union} β€” anonymous. Yes bestie, it's literally an unnamed union, she has no name and she doesn't need one πŸ¦‹
  • {unnamed_struct} β€” anonymous. Same energy, an unnamed struct, iconic and mysterious ✨
  • rsvd24 β€” Reserved. Twenty-four reserved bytes of pure silence, respect them 🌈
  • regctl_eds β€” Registered Controller Extended Data Structure. The extended, highkey extra version of the registered controller info πŸ’œ
  • regctl_ds β€” Registered Controller Data Structure. The regular, lowkey version of the registered controller info πŸ’–
Heads up: both regctl_eds and regctl_ds are declared with [0] and they live in the same anonymous union, so it's one or the other β€” you don't get both at once, iykyk 😭

and that's the whole struct, bestie, you ate that 🧚⭐

This page was brought to you by the libnvme(2) API manual, all about struct nvme_resv_status, dated July 2026 β€” mwah, slay, go read more manpages πŸ’–

πŸ“¦ where this page comes from