NVME_INIT_GET_FEATURES_NS_METADATA-LIBNVME3(2)
πΈ nvme_init_get_features_ns_metadata π
okay bestie, welcome to the libnvme API manual, section 9 (yep, the kernel/API-ish vibe, iykyk). we're talking about nvme_init_get_features_ns_metadata β and listen, the name is so long that the man page header literally gives up halfway and prints it as nvme_init_ge..._ns_metadata(9). iconic behaviour honestly. she's verbose and she knows it. π
β¨ NAME β¨
nvme_init_get_features_ns_metadata β Initializes the passthru command for Get Features - Namespace Metadata π¦
like, that's her whole job. one function, one purpose, no cap.
β¨ SYNOPSIS β¨
void nvme_init_get_features_ns_metadata (struct libnvme_passthru_cmd
*cmd , enum nvme_get_features_sel sel , struct nvme_host_metadata *data
);
that's the whole signature, copied exactly, don't @ me π note the void return β she does her work through the buffer you hand her and she does not return a value back to you. main character energy: doesn't report back, just leaves everything changed. π
β¨ ARGUMENTS β¨
cmdβ the Passthru command you're gonna use. this is the buffer she sets up for you, so hand her astruct libnvme_passthru_cmdand let her cook πselβ Select which type of attribute to return, seeenum nvme_get_features_sel. yes bestie, you pick the flavour of attribute, the enum tells you what's on the menu β¨dataβ Host Metadata data buffer, seestruct nvme_host_metadata. this is where the metadata hangs out β it's astruct nvme_host_metadataand she's just vibing there π«Ά
β¨ DESCRIPTION β¨
so basically: she Initializes the passthru command buffer for the Get Features command, with the FID value NVME_FEAT_FID_NS_METADATA. π₯
that's it. that's the whole thing. the buffer goes in, the Get Features scaffolding comes out, and the FID is set to NVME_FEAT_FID_NS_METADATA so everybody downstream knows exactly which feature we're asking about. slay. π
ngl, the fact that this one is basically "prep the command so it's ready to fire" is the whole point β she's setup, not execution. don't expect her to send anything anywhere, because the original page doesn't say she does, and we do not invent lore here. π
π cute sign-off π
this lil page is from the libnvme API manual, dated October 2026, and in the footer it prints out as nvme_init_get_features_ns_nvme_init_ge..._ns_metadata(9) β yes, even longer and even more truncated than the top, and honestly? she ate. π go forth and initialize those passthru commands, bestie. βπ§πΈ
π¦ 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