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: bothregctl_edsandregctl_dsare 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
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms