libnvme(2)
๐ NAME ๐
struct nvme_ns_id_desc โ the Namespace Identifier Type descriptor, bestie. It's the glow-up little struct that tells you what kind of namespace ID you're looking at and how long it is. She's giving "ID card but make it NVMe" ๐ชชโจ
๐ธ SYNOPSIS ๐ธ
struct nvme_ns_id_desc {
__u8 nidt;
__u8 nidl;
__le16 rsvd;
__u8 nid[];
};
okay so it's a tiny header followed by a flexible array and honestly? iconic. periodt ๐
๐ Members ๐
nidtโ Namespace Identifier Type. Which flavor of identifier are we in?? go checkenum nvme_ns_id_desc_nidtfor the menu of options, she has the full list ๐nidlโ Namespace Identifier Length. This is how many bytes longstruct nvme_id_ns.nidis. count 'em, don't guess ๐งฎrsvdโ Reserved. literally just sitting there. do not perceive her. do not touch her. she's resting ๐nidโ Namespace Identifier. This holds a value that is globally unique and gets assigned to the namespace right when the namespace is created โ like a name tag you get at birth but for storage ๐ผโจ The length is defined instruct nvme_id_ns.nidl, so no, you don't get to decide it yourself, that's not your main character moment.
๐ซถ bestie reminder:nidltells you the length, andstruct nvme_id_ns.nidlalso tells you the length. yes they're coordinated. no that's not a typo. the struct is just thorough like that.
and that's the whole page, no cap โ we out here in the libnvme API Manual, that's the manual name, folder her in right up top like a lil sticker ๐ this page is struct nvme_ns_id_desc's very own, versioned with libnvme(2), and it was dated July 2026 so she's fresh fr fr. mwah, bye ๐๐ฆโญ
๐ฆ 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