libnvme(9)
π libnvme(9) β the API Manual, bestie edition π
Okay so real quick before we dive in: this is a page from libnvme, the API manual, section 9. It's short, it's sweet, and it's literally just one struct. Let's go π«Ά
β¨ NAME β¨
struct nvme_feat_host_behavior β Host Behavior Support, as a Data Structure. That's the whole vibe. It's the struct that holds all your host-behavior-feature bits in one cute little bundle π
πΈ SYNOPSIS πΈ
Here's the shape of it, exactly as it lives in the header β no cap, copy it character for character:
struct nvme_feat_host_behavior {
__u8 acre;
__u8 etdas;
__u8 lbafee;
__u8 hdisns;
__le16 cdfe;
__u8 rsvd6[506];
};
So yeah β four single bytes, then a little-endian 16-bit field, then a big ol' 506-byte reserved chunk living its best life at the end π¦
π Members π
Let's do a little meet-and-greet with every single field, because everyone gets their moment:
acreβ Advanced Command Retry Enable π₯etdasβ Extended Telemetry Data Area 4 Supported πlbafeeβ LBA Format Extension Enable πhdisnsβ Host Dispersed Namespace Support πcdfeβ Copy Descriptor Formats Enable πrsvd6β Reserved π (it's reserved, bestie, don't touch it, it's not doing anything and that's its whole job)
Side note, and I mean this with love: rsvd6 is 506 bytes because that offset math has to land right. Never repurpose reserved fields, that's how you end up in a group chat with the kernel maintainers π
Okay that's genuinely the whole page β short king behavior, honestly. This was struct nvme_feat_host_behavior from the libnvme(9) API Manual, dated October 2026. Slay, go populate your host behavior feature bits, and drink some water πβ¨
π¦ 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