libnvme(9)
π libnvme(9) π
okay so bestie, welcome to the API Manual for libnvme β and today's main character is a struct that's literally the blueprint for the Rate Limiting log page. yes, that log page. sit down, hydrate, let's go π
β¨ NAME β¨
struct nvme_rate_limiting_log β the Rate Limiting log page (Log Page Identifier 28h) π¦
like, it's a struct, it's about rate limiting, it's log page 28h, that's the vibe check and it passed.
πΈ SYNOPSIS πΈ
struct nvme_rate_limiting_log {
__u8 rsvd0[2];
__le16 np;
__le32 lpl;
__le32 gc;
__le16 nst;
__u8 rsvd14[2];
__le32 port_offset[];
};
no cap, that's the whole shape of it. look at her. iconic. π
π Members π
so these are the fields, and every single one of them matters, don't skip, i'm serious π
rsvd0β Reserved. that's it. that's the whole field. she's just sitting there being reserved, we respect her privacy πnpβ Number of Ports inport_offset, and it's 0's based (so like, off-by-one is the whole personality, keep that in mind fr fr)lplβ Log Page Length, in dwords, of this log page. dwords, bestie, not bytes, not words β dwords πgcβ Generation Count, and the way it increments each time the information in this log page changes since the last time the host read it? highkey important. it's literally the "hey something moved" counter β¨nstβ Number of Supported Targets, also 0's based (again with the 0's based, love that for us π«Ά)rsvd14β Reserved. second reserved field, also minding her own business πΈport_offsetβ Dword offsets, relative to the start of this log page, pointing to the Rate Limiting Port Descriptors, and there arenp + 1entries (yes,np + 1, becausenpis 0's based, told you it mattered π). okay and then the rest is kind of a whole lore drop: the Rate Limiting Data (which is referenced by these offsets and nested offsets), the Supported Target list, and the trailing padding all follow this array β and you locate all of it usinglpl,np, andnst. three fields, one treasure map πΊοΈπ
lowkey a warning-ish heads up: those offsets are dword offsets relative to the start of this log page, and everything after the array is found vialpl,np, andnstβ so don't go treating these as byte offsets or just vibing your way through the layout, bestie, do the math π
π a lil sign-off π
and that's the page! she's from the API Manual, her name is struct nvme_rate_limiting_log, and she was dated October 2026 β so like, mark your calendar, drink some water, and go read that log page correctly. mwah πππ¦βπ₯
periodt. π§
π¦ 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