libnvme(2)
π NAME π
struct nvmf_discovery_log β it's the Discovery Log Page, aka Log Identifier 70h β¨
And yes bestie, this page lives in the libnvme API manual, so it's libnvme(2) β you're exactly where you're supposed to be π«Ά
πΈ SYNOPSIS πΈ
struct nvmf_discovery_log {
__le64 genctr;
__le64 numrec;
__le16 recfmt;
__u8 rsvd14[1006];
struct nvmf_disc_log_entry entries[];
};
π¦ Members π¦
Okay so this struct is literally just a header + a whole rack of entries, and here's what every single field is doing:
genctrβ the Generation Counter (GENCTR), and she's the vibe tracker for the whole page π. She tells you what version of the discovery info you're looking at, and she starts her life at a value of 0h. Every time the Discovery Log Page changes, this counter gets incremented by one. And here's the cute bit: if the value is FFFFFFFF_FFFFFFFFh, then the field shall be cleared to 0h when incremented β yep, she rolls over back to 0h π. No drama, just wrapped.numrecβ Number of Records (NUMREC) π . It tells you how many records are chillin' inside the log.recfmtβ Record Format (RECFMT) π. This one specifies the format of the Discovery Log Page. If someone defines a brand new format, this value gets incremented by one. And the format of the record specified in this definition shall be 0h. Periodt.rsvd14β Reserved π€. That's it, that's the field, don't touch her.entriesβ Discovery Log Page Entries π₯ β and you need to go seestruct nvmf_disc_log_entryfor the actual deets. Go look, I'll wait π§
okay that's the whole page, bestie, you ate that π
This was struct nvmf_discovery_log from the libnvme(2) API Manual, dated July 2026 π
β screenshot it, save it, love it, bye πβ¨π
π¦ 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