libnvme(9)
π libnvme(9) β API Manual, bestie edition
Okay so this is a page straight out of the libnvme API Manual, and we're talking about one specific little struct. Buckle up π
β¨ NAME β¨
struct tcg_l0_cnl β the Configurable Namespace Locking feature, and its feature code is 0x0403 (iconic, honestly π)
πΈ SYNOPSIS πΈ
Here's the whole vibe, verbatim, no cap:
struct tcg_l0_cnl {
__u8 flags;
__u8 rsvd1[3];
__be32 max_key_count;
__be32 unused_key_count;
__be32 max_ranges_per_ns;
};
π Members π
flagsβ the flags field, and likeβ¦ go look atenum tcg_l0_cnl_flagsfor what's actually in there π¦rsvd1β reserved. Not for you. Hands off πmax_key_countβ the maximum key count π₯unused_key_countβ the unused key count, literally right there in the name β¨max_ranges_per_nsβ the maximum ranges per namespace π
π§ Description π§
This is from the TCG Storage Opal SSC Feature Set: Configurable Namespace Locking, section 4.2.1. That's the whole lore, bestie π
ngl if you're poking at the reserved bytes, that's not the main character energy we're going for β leave rsvd1 alone π«Ά
that's the whole page, periodt π β this little beauty landed in October 2026, it's struct tcg_l0_cnl content from libnvme(9), and yes she ate, no crumbs πβπ
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms