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
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms