libnvme(2)

✨ NAME ✨

okay bestie, welcome to libnvme, the API manual πŸ’– β€” and today's main character is struct nvmf_dim_data, aka Discovery Information Management (DIM) - Data. it's giving very-much-the-payload-of-a-discovery-log-page, and we're gonna stan every single field 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

struct nvmf_dim_data {
    __le32 tdl;
    __u8 rsvd4[4];
    __le64 nument;
    __le16 entfmt;
    __le16 etype;
    __u8 portlcl;
    __u8 rsvd21;
    __le16 ektype;
    char eid[NVME_NQN_LENGTH];
    char ename[NVMF_ENAME_LEN];
    char ever[NVMF_EVER_LEN];
    __u8 rsvd600[424];
    union nvmf_die  die[];
};

like, look at her. literal icon behavior πŸ’…


🌸 Members 🌸

  • tdl β€” Total Data Length. it's the receipts, the whole tally πŸ“
  • rsvd4 β€” Reserved. do not perceive her, she is not for you πŸ™ˆ
  • nument β€” Number of entries. how many little die besties are tagging along πŸ”’
  • entfmt β€” Entry Format, typed as enum nvmf_dim_entfmt. the vibe of the entry, formally πŸŽ€
  • etype β€” Entity Type, typed as enum nvmf_dim_etype. who even is this entity fr fr πŸ‘‘
  • portlcl β€” Port Local. local port energy, no long-distance situationship πŸ›°οΈ
  • rsvd21 β€” Reserved. again. mind your business 🚫
  • ektype β€” Entry Key Type. what kinda key we talking πŸ”‘
  • eid β€” Entity Identifier (e.g. Host NQN). her government name, basically πŸͺͺ
  • ename β€” Entity Name (e.g. hostname). the cute nickname era ✨
  • ever β€” Entity Version (e.g. OS Name/Version). not Taylor's version β€” the OS Name/Version one 🌈
  • rsvd600 β€” Reserved. 424 bytes of pure silence, slay 🫧
  • die β€” Discovery Information Entry (see nument above). this one's a flexible array member, so it's literally the "and friends" of the struct β€” the number of them is whatever nument says πŸ”₯
bestie bestie bestie β€” notice how many fields are Reserved? that's not a bug, that's just how the layout keeps its space. leave them alone, they're on a wellness retreat πŸ§˜β€β™€οΈ

and that's the whole struct, no cap πŸ’œ no field skipped, no field invented, periodt 🌈

anyway, this lil page lives in the libnvme API Manual β€” dated July 2026, from the libnvme(2) era, and it's been a whole pleasure being your manual bestie πŸ’– mwah, go read a namespace page next, ily πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from