libnvme(9)
π libnvme(9) β API Manual π
okay so bestie, this is a page from the libnvme API manual, and today's main character is a struct. yes, a whole struct. and honestly? she's iconic.
β¨ NAME β¨
struct nvme_persistent_event_log β Persistent Event Log
like, the persistent one. the one that remembers. periodt.
πΈ SYNOPSIS πΈ
struct nvme_persistent_event_log {
__u8 lid;
__u8 rsvd1[3];
__le32 tnev;
__le64 tll;
__u8 rv;
__u8 rsvd17;
__le16 lhl;
__le64 ts;
__u8 poh[16];
__le64 pcc;
__le16 vid;
__le16 ssvid;
char sn[20];
char mn[40];
char subnqn[NVME_NQN_LENGTH];
__le16 gen_number;
__le32 rci;
__u8 rsvd378[102];
__u8 seb[32];
};
no cap, every single field is right there, in order, exactly like that. type it out character for character or don't type it at all π
π¦ Members π¦
okay girl, let's go through the whole cast of this struct one by one. everybody gets their moment β¨
lidβ Log Identifier. her name tag πrsvd1β Reserved. not for you, bestie πtnevβ Total Number of Events. the full count, all of them, no skipstllβ Total Log Length. how long the whole thing is, fr frrvβ Log Revision. the version era she's in πrsvd17β Reserved. again. mind your business πlhlβ Log Header Length. just the header part, measured out πtsβ Timestamp. when it happened, noted πpohβ Power on Hours. how many hours she's been awake, honestly relatable πpccβ Power Cycle Count. how many times she's been turned off and back on again π₯vidβ PCI Vendor ID. who made her πΈssvidβ PCI Subsystem Vendor ID. who made the subsystem version of her, iykyksnβ Serial Number. her government name π«Άmnβ Model Number. the model she serves πsubnqnβ NVM Subsystem NVMe Qualified Name. yes the whole long name, she's fancy like that πgen_numberβ Generation Number. which generation she's giving βrciβ Reporting Context Information. the context, the lore, the backstory π¦rsvd378β Reserved. respectfully, not your field πsebβ Supported Events Bitmap. the whole bitmask of what she can handle, and she can handle a lot π
bestie reminder: thersvdfields are Reserved β that means hands off, they're not yours to touch, no notes π and thesubnqnfield is sizedNVME_NQN_LENGTH, so keep it exactly that, don't go inventing a different length, please and thank you π
π§ sign-off π§
and that's the page, bestie! this one's from October 2026, courtesy of the libnvme(9) manual β page struct nvme_persistent_event_log, API Manual energy all the way through. go forth and log your persistent events, slay πβ¨π
π¦ 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