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:rsvd19andrsvd24are 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
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms