NVME_INIT_GET_FEATURES_CTRL_METADATA-LIBNVME3(2)

πŸ“¦ version 3.2, in arch rolling

πŸ’– 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 check enum nvme_get_features_sel for your options πŸ‘€
  • data β€” the Host Metadata data buffer, defined by struct 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