libnvme(9)
π NAME π
okay bestie, say hi to struct nvme_non_volatile_storage_medium_access_descriptor β the Non-Volatile Storage Medium Access Descriptor, aka QNSED for short (yes the acronym does not match, no we're not asking questions). This is a libnvme API manual page, and it's literally just here to introduce you to this one struct. slay.
β¨ SYNOPSIS β¨
here's the whole vibe, character for character, don't touch a thing:
struct nvme_non_volatile_storage_medium_access_descriptor {
__u8 sc;
__u8 rsvd1;
__le16 nnsmad;
__le32 si;
struct nvme_rate_limiting_max_access_descriptor rlma;
__u8 rsvd40[24];
__le32 nvsma_offset[];
};
like look at her. flexible array member at the end. main character energy fr fr. π¦
π Members π
okay so let's meet the cast, one field at a time:
scβ the Scope. go look atenum nvme_rate_limiting_scopeif you wanna know the actual options, iykyk.rsvd1β Reserved. that's it. that's the whole field. leave it alone bestie πnnsmadβ the Number of Non-Volatile Storage Medium Access Descriptors chillin' insidenvsma_offset. but plot twist: it's cleared to0hifscis NVM subsystem, or if the NVM subsystem supports a single domain. so sometimes she's a zero. we respect it. πsiβ the Scope Identifier, and it's for whichever scopescis indicating. they're a matching set, adorable.rlmaβ the Rate Limiting Maximum Access</puple> for the scope thatscpoints at. (type:struct nvme_rate_limiting_max_access_descriptor, no cap.)rsvd40β Reserved again. 24 bytes of pure "nothing to see here". iconic honestly.nvsma_offsetβ Dword offsets, measured relative to the start of the Rate Limiting log page, pointing to the nested Non-Volatile Storage Medium Access Descriptors β and there arennsmadof those entries. she's a whole map, not just a field. π₯
reminder bestie:rsvd1andrsvd40are Reserved. that means hands off, no cap. don't go writing your own lore into them.
and that's the page!! no cap, it's giving "short but essential". this was libnvme, from the API Manual, dated Octoberβ¦ β and the footer literally closes out with our girl struct nvme_non_volatile_storage_medium_access_descriptor and libnvme(9) one more time, so yeah, she said her name twice. 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