libnvme(2)

πŸ’– libnvme β€” struct nvme_dsm_range πŸ’–

okay bestie, welcome to the libnvme API manual, chapter: one (1) extremely specific little struct. it's called nvme_dsm_range and no, it's not about your situationship, it's about Dataset Management - Range Definition. yep. range definition. we're defining a range. iconic behaviour tbh πŸŽ€


✨ NAME ✨

struct nvme_dsm_range β€” Dataset Management - Range Definition πŸ¦‹

that's it. that's the whole name. short, sweet, slays.


✨ SYNOPSIS ✨

here's the whole glow-up, verbatim, no edits, don't touch a single character:

struct nvme_dsm_range {
    __le32 cattr;
    __le32 nlb;
    __le64 slba;
 };

three fields. one struct. main character energy ✨


✨ Members ✨

let's meet the cast, one by one πŸ’…

  • cattr β€” Context Attributes 🌸 like, the vibe context of the whole thing, yk?
  • nlb β€” Length in logical blocks πŸ“ how many logical blocks we're talking about. literally the length. no notes.
  • slba β€” Starting LBA πŸš€ where the range kicks off. the starting point. the origin story.

⚠️ friendly reminder bestie: these fields are typed __le32, __le32, and __le64 β€” keep them __le32, __le32, and __le64. do not freestyle. fr fr πŸ™ˆ

and that's the whole page, periodt. 🫢

<cute sign-off>this little baddie of a page comes straight out of the libnvme API Manual, it's the struct nvme_dsm_range entry, and it was dated July 2026 βœ¨πŸ’œ thanks for reading, ily, go define some ranges πŸ‘‘</cute sign-off>

πŸ“¦ where this page comes from