NVME_INIT_SET_FEATURES_CTRL_METADATA-LIBNVME3(2)

πŸ“¦ version 3.2, in arch rolling

πŸ’… nvme_init_set_features_ctrl_metadata(9) β€” libnvme API manual πŸŽ€

okay bestie, welcome to the libnvme API manual, we're doing the nvme_init_set_features_ctrl_metadata page today and honestly it's short, sweet, and ate ✨


🌸 NAME 🌸

nvme_init_set_features_ctrl_metadata β€” Initialize passthru command for Controller Metadata 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

void nvme_init_set_features_ctrl_metadata (struct libnvme_passthru_cmd
*cmd , bool sv , __u8 ea , struct nvme_host_metadata *data );

no cap, that's the whole signature. void return, so nothing comes back at you πŸ’€


⭐ ARGUMENTS ⭐

  • cmd β€” the Passthru command you're gonna use πŸ’– this is the buffer getting set up, so hand it over already allocated
  • sv β€” Save value across power states, yes queen, bool, your call πŸ”₯
  • ea β€” Element Action (EA), and bestie it's literally __u8 β€” see enum nvme_host_metadata_ea for the actual values πŸ‘‘
  • data β€” Host Metadata data buffer, and it's a struct nvme_host_metadata pointer, see struct nvme_host_metadata for what goes in there πŸŽ€

✨ DESCRIPTION ✨

So what does this actually do? It initializes the passthru command buffer for the Set Features command, with the FID value NVME_FEAT_FID_CTRL_METADATA πŸ¦‹ that's it. that's the vibe. it's giving setup-function main character energy β€” all the plumbing, no drama πŸ’…

lowkey important: it's Controller Metadata here, not the other flavors, and the FID is literally NVME_FEAT_FID_CTRL_METADATA, so don't go swapping it, iykyk πŸ™ˆ

and that's the whole page bestie, go forth and set those features πŸŒˆπŸ’œ

sign-off szn: this was the libnvme API manual page for nvme_init_set_features_ctrl_metadata(9), dated October 2026 πŸ“ mwah, bye 🧚

πŸ“¦ where this page comes from