libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… 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 of 0h. every single time the Discovery Log Page changes, this counter gets incremented by one. and if the value of this field is FFFFFFFF_FFFFFFFFh? then the field shall be cleared to 0h when incremented β€” aka it rolls over to 0h. 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 be 0h. periodt. 🌈
  • rsvd14 β€” Reserved 😴 (she's just there holding space, we respect her)
  • entries β€” Discovery Log Page Entries β€” see struct 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