libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… libnvme(9) β€” the libnvme API Manual, bestie ✨

Okay so this is a page straight out of the libnvme API manual, and today's main character is a struct. Yes, a whole page for one struct. She earned it. πŸŽ€

🌸 NAME 🌸

struct nvmf_disc_log_entry β€” the Discovery Log Page Entry. That's it, that's her. One entry in the discovery log page, living her best life, holding all the deets about one discoverable thing on the fabric. πŸ’–

✨ SYNOPSIS ✨

Here's the shape of her, exactly as she is, no edits, no cap:

struct nvmf_disc_log_entry {
    __u8 trtype;
    __u8 adrfam;
    __u8 subtype;
    __u8 treq;
    __le16 portid;
    __le16 cntlid;
    __le16 asqsz;
    __le16 eflags;
    __u8 rsvd12[20];
    char trsvcid[NVMF_TRSVCID_SIZE];
    __u8 rsvd64[192];
    char subnqn[NVME_NQN_LENGTH];
    char traddr[NVMF_TRADDR_SIZE];
    union nvmf_tsas tsas;
 };

Lowkey iconic. Note the little rsvd fields β€” those are reserved, we do not touch, we do not ask questions. πŸ™ˆ


πŸ¦‹ Members πŸ¦‹

Every field, one by one, because nobody gets left out at this sleepover:

  • trtype β€” Transport Type. iykyk, but if you don't, it's the enum nvmf_trtype situation. πŸš€
  • adrfam β€” Address Family, and yes it's an enum nvmf_addr_family moment. 🌐
  • subtype β€” the Subsystem Type. Simple, elegant, serving. ✨
  • treq β€” Transport Requirements β€” goes by enum nvmf_treq. 🀝
  • portid β€” Port ID. She's the identifier for the port, periodt.
  • cntlid β€” Controller ID. Also just vibing with an ID. πŸ’…
  • asqsz β€” Admin Submission Queue Size. Big queue energy. πŸ”₯
  • eflags β€” Entry Flags, channelling enum nvmf_disc_eflags. 🚩
  • rsvd12 β€” Reserved. Do not perceive her. πŸ’€
  • trsvcid β€” Transport Service Identifier. Slay, honestly. πŸŽ€
  • rsvd64 β€” Reserved. Again. She's just there. πŸ™ˆ
  • subnqn β€” NVM Subsystem Qualified Name β€” the full government name of the subsystem, fr fr. πŸ‘‘
  • traddr β€” Transport Address. Where to find her. πŸ“
  • tsas β€” Transport Specific Address Subtype β€” that's the union nvmf_tsas, and it's giving "the details behind the address." 🌈
Heads up bestie: rsvd12 and rsvd64 are Reserved β€” don't go writing your cute little data in there, they're not for us. 🫢

And that's the whole vibe check on struct nvmf_disc_log_entry πŸ’œ β€” this page came from the libnvme API manual, dated October 2026, and the footer was all libnvme(9) about it. Mwah, stan, bye! πŸ’–βœ¨πŸŒ·

πŸ“¦ where this page comes from