NVME_INIT_GET_FEATURES_CTRL_METADATA-LIBNVME3(2)
π nvme_init_get_features_ctrl_metadata β like, the libnvme API manual, bestie π
Okay so real talk, this one lives in the libnvme API manual, and it's honestly such a vibe. It's a little init function, it does one thing, and it does it flawlessly. Let's get into it π
β¨ NAME β¨
nvme_init_get_features_ctrl_metadata β bestie, this is the one that initializes the passthru command for Get Features - Controller Metadata. That's it, that's the whole job, and she ate π
πΈ SYNOPSIS πΈ
void nvme_init_get_features_ctrl_metadata (struct libnvme_passthru_cmd
*cmd , enum nvme_get_features_sel sel , struct nvme_host_metadata *data
);
Note the void β she returns nothing, she's not about to hand you a status code, she's just gonna do the thing. Periodt.
π¦ ARGUMENTS π¦
cmdβ the passthru command you're gonna use. This is the little vessel she fills up, so hand her a good one π«Άselβ selects which type of attribute to return, and fr fr you gotta checkenum nvme_get_features_selfor your options πdataβ the Host Metadata data buffer, defined bystruct nvme_host_metadata. That's where the good stuff lands π
π DESCRIPTION π
So what she actually does: she initializes the passthru command buffer for the Get Features command, with the FID value set to NVME_FEAT_FID_CTRL_METADATA.
That's the tea β β Get Features + that exact FID, all prepped and ready to send. No cap, that's the entire function. She's a one-job icon and she's obsessed with doing it right β¨
Ngl, don't sleep on the FID value β it's NVME_FEAT_FID_CTRL_METADATA and it's literally the whole point of this function. Copy it exactly, don't freestyle it π
And that's the page, bestie π This was nvme_init_get_features_ctrl_metadata(9) from the libnvme API manual, dated October 2026 β shoutout to the libnvme girlies for keeping the docs iconic. Mwah, go init those commands ππ₯π
π¦ 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