libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’– 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 skips
  • tll β€” Total Log Length. how long the whole thing is, fr fr
  • rv β€” 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, iykyk
  • sn β€” 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: the rsvd fields are Reserved β€” that means hands off, they're not yours to touch, no notes πŸ’€ and the subnqn field is sized NVME_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