libnvme(2)

✨ libnvme β€” section 2 of the manual ✨

okay bestie, pull up a chair, we're reading a libnvme(2) page together πŸ’– this one is short and sweet, like a lil snack, but every byte of it matters, fr fr.


πŸ’… NAME πŸ’…

struct nvme_id_ns_granularity_desc β€” the Namespace Granularity Descriptor. it's giving "descriptor of granularity, for a namespace." iconic. no cap.


🌸 SYNOPSIS 🌸

struct nvme_id_ns_granularity_desc {
    __le64 nszegran;
    __le64 ncapgran;
};

that's the whole thing, babes. two little __le64 fields holding hands 🫢 note that __le64 is little-endian 64-bit β€” the vibe is endianness-aware and it does NOT play around 😀


πŸ”₯ Members πŸ”₯

  • nszegran β€” Namespace Size Granularity. the granularity of the namespace's size, as its name lowkey screams at you. ✨
  • ncapgran β€” Namespace Capacity Granularity. the granularity of the namespace's capacity. matching set, obsessed. πŸŽ€

πŸ’€ real talk: if you're here because you tried to guess what these fields do beyond their one-line descriptions β€” the page says exactly this and nothing more, so we're not gonna make stuff up. periodt.

that's the entire gossip, and honestly? a two-field struct that just tells you how granular your namespace size and capacity are is the little black dress of data structures β€” simple, timeless, does exactly one job. πŸ’…βœ¨

signing off, besties πŸ¦‹ β€” this page comes to you from libnvme, manual section 2, dated July 2026. stay granular, stay slay. πŸ’œπŸŒˆ

πŸ“¦ where this page comes from