Scroll to navigation

nvme_init_set_features_write_protect(2) libnvme API manual nvme_init_set_features_write_protect(2)

NAME

nvme_init_set_features_write_protect - Initialize passthru command for Write Protect

SYNOPSIS

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

ARGUMENTS

Passthru command to use
Namespace ID
Save value across power states
Write Protection State

DESCRIPTION

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

nvme_init_set_features_write_protect November 2026