nvme_init_set_features_write_protect-libnvme3(2)

nvme_init_set_features_write_protect-libnvme32

Initialize passthru command for write protect

Usage

void nvme_init_set_features_write_protect (struct libnvme_passthru_cmd *cmd , __u32 nsid , bool sv , enum nvme_feat_nswpcfg_state wps );

Arguments

cmd

Passthru command to use

nsid

Namespace ID

sv

Save value across power states

wps

Write Protection State

Overview

Initializes the passthru command buffer for the Set Features command with FID value NVME_FEAT_FID_WRITE_PROTECT

From nvme-cli 3.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.