libnvme(2)

πŸ’– NAME πŸ’–

struct nvme_supported_log_pages β€” the "which log pages do you even have, bestie" log πŸŽ€

Okay so real quick before we dive in: this page is straight out of the libnvme manual, section 2. That's the API manual, not the command-line one. Just so you know where you are. 🫢


✨ SYNOPSIS ✨

struct nvme_supported_log_pages {
    __le32 lid_support[NVME_LOG_SUPPORTED_LOG_PAGES_MAX];
 };

There she is. That's the whole struct. Iconic behavior, honestly. πŸ’…


🌸 Members 🌸

  • lid_support β€” literally the "Log Page Identifier Supported" field, which is exactly what it sounds like. One entry per log page ID, and it tells you whether that log page is supported. No cap. ✨

πŸ¦‹ Description πŸ¦‹

So this struct is the Supported Log Pages log, and its Log Identifier is 00h. Yep β€” log page zero, the little intro page that's like "hey, here's a rundown of all the log pages that exist on this controller." It's giving table of contents energy. πŸ“–

Basically: you read the supported log pages log, you get an array of lid_support entries, and each one tells you whether the corresponding log page identifier is supported. NVME_LOG_SUPPORTED_LOG_PAGES_MAX is how many of those entries you get. Periodt. πŸ’œ

Heads up bestie: it's a Log Identifier 00h situation, so don't go looking for it at some random high number. Log page zero. That's the one. πŸ‘‘

That's the whole page, she's short but she ate. πŸ“

Sign-off time: this was struct nvme_supported_log_pages from the libnvme API manual, section 2, dated July 2026. Go read your log pages, main character. πŸŒˆπŸ‘‘πŸ’…

πŸ“¦ where this page comes from