libnvme(2)
π NAME π
struct nvme_lba_range_type_entry β no cap, this is the LBA Range Type - Data Structure Entry, and it lives right here in the libnvme API manual, section 2, bestie π«Ά
β¨ SYNOPSIS β¨
okay so here's the whole shape of it, character for character, don't touch the padding:
struct nvme_lba_range_type_entry {
__u8 type;
__u8 attributes;
__u8 rsvd2[14];
__le64 slba;
__le64 nlb;
__u8 guid[16];
__u8 rsvd48[16];
};
like. look at those little reserved gaps. the struct said "i need space" and the spec said "say less" π
π Members π
typeβ picks what Type of LBA range this baby is. it's the vibe check for the whole entry, fr fr.attributesβ the attributes of the LBA range. all the personality traits, right here β¨rsvd2β Reserved. hands off, it's not for you, it's a__u8array of14. leave it alone πslbaβ the Starting LBA. where the range begins,__le64, little-endian bc ofc it is πΈnlbβ the Number of Logical Blocks. how many blocks we're counting, also__le64. iconic.guidβ the Unique Identifier.__u8array,16bytes of pure main character energy πrsvd48β also Reserved.__u8array,16bytes, also none of your business π
ngl, notice how there are two reserved fields βrsvd2andrsvd48β and they are not the same size bestie.14vs16. do not confuse them. that's the whole lore.
and that's the entry! short, sweet, deeply obsessed with byte alignment π¦
this page came to you courtesy of the libnvme(2) manual, dated July 2026 β that's the source and the version-date energy right there, periodt πβ
stay padded, stay aligned ππ§
π¦ 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