libnvme(9)
π
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 theenum nvmf_trtypesituation. πadrfamβ Address Family, and yes it's anenum nvmf_addr_familymoment. πsubtypeβ the Subsystem Type. Simple, elegant, serving. β¨treqβ Transport Requirements β goes byenum 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, channellingenum 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 theunion nvmf_tsas, and it's giving "the details behind the address." π
Heads up bestie:rsvd12andrsvd64are 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
- 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