libnvme(2)

✨ libnvme(2) β€” the API Manual, bestie edition ✨

okay so welcome to libnvme's manual, section 2 (that's the API Manual section, iykyk) πŸŽ€ today we're doing the struct nvme_host_discover_log and honestly? it's giving "host discovery log page" main character energy. let's get into it πŸ’…


🌸 NAME 🌸

struct nvme_host_discover_log β€” the Host Discovery Log. that's it, that's the vibe πŸ¦‹


✨ SYNOPSIS ✨

here's the whole struct, laid out exactly how it lives in the header, no cap:

struct nvme_host_discover_log {
    __le64 genctr;
    __le64 numrec;
    __le16 recfmt;
    __u8 hdlpf;
    __u8 rsvd19;
    __le32 thdlpl;
    __u8 rsvd24[1000];
    struct nvme_host_ext_discover_log       hedlpe[];
 };

like, look at those little __le types. little endian sweeties, all of them 🫢


πŸ‘‘ Members πŸ‘‘

one by one, no skipping, we do not skip in this house:

  • genctr β€” Generation Counter. it counts the generations, bestie. iconic behaviour ✨
  • numrec β€” Number of Records. how many records we're working with, fr fr πŸ”’
  • recfmt β€” Record Format. the format the records are in πŸ’–
  • hdlpf β€” Host Discovery Log Page Flags. flags for the Host Discovery Log Page, slay 🚩
  • rsvd19 β€” Reserved. hands off, it's not for you πŸ™ˆ
  • thdlpl β€” Total Host Discovery Log Page Length. the total length of the Host Discovery Log Page. total total. πŸ‘‘
  • rsvd24 β€” Reserved. also reserved. also not your business πŸ’€
  • hedlpe β€” Host Extended Discovery Log Page Entry List. the entry list for the Host Extended Discovery Log Page, and yes it's the flexible array member at the end, the way that it just trails off into infinity 🌈

lowkey reminder: rsvd19 and rsvd24 are Reserved. that means don't touch, don't read into it, don't make it mean something. periodt πŸ’…

and that's the whole page, bestie. we ate, no crumbs left 🌸

this was libnvme(2), the API Manual, page for struct nvme_host_discover_log, and the source/version situation is July 2026 β€” bye babes, go read your log pages responsibly πŸ’–πŸ§šβœ¨

πŸ“¦ where this page comes from