libnvme(9)
π libnvme(9) β API Manual
okay bestie, welcome to the libnvme glow-up, section 9 of the manual (yes, the API Manual, we're fancy). today's main character is a struct and honestly? she's serving discovery realness. let's get into it π¦
β¨ NAME β¨
struct nvmf_discovery_log β Discovery Log Page (Log Identifier 70h) π
like, this is the log page. identifier 70h. write it down. iykyk π
πΈ SYNOPSIS πΈ
here's the whole vibe, verbatim, no cap:
struct nvmf_discovery_log {
__le64 genctr;
__le64 numrec;
__le16 recfmt;
__u8 rsvd14[1006];
struct nvmf_disc_log_entry entries[];
};
look at her. absolutely iconic layout. β¨
π Members π
genctrβ Generation Counter (GENCTR), and she is literally the version tracker of the discovery info. starts at a value of0h. every single time the Discovery Log Page changes, this counter gets incremented by one. and if the value of this field isFFFFFFFF_FFFFFFFFh? then the field shall be cleared to0hwhen incremented β aka it rolls over to0h. no drama, just wrap-around energy π«numrecβ Number of Records (NUMREC). she tells you how many records are contained in the log. that's it, that's the whole job, and she does it flawlessly π«Άrecfmtβ Record Format (RECFMT). specifies the format of the Discovery Log Page. if a new format gets defined, this value is incremented by one. and the format of the record specified in this definition shall be0h. periodt. πrsvd14β Reserved π΄ (she's just there holding space, we respect her)entriesβ Discovery Log Page Entries β seestruct nvmf_disc_log_entry. this is where the actual records live, go look at her sister struct for the details π₯
π quick vibe check reminder: rsvd14 is Reserved β do not touch, do not write your little notes in it, nothing. reserved means reserved, bestie π
and that's the page!! tysm for reading, you ate that ngl π
sign-off szn: this little masterpiece is struct nvmf_discovery_log from libnvme(9), dated October 2026 β mwah, go forth and discover, ily ππβ¨
π¦ 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