nvme_set_features_write_protect2 - Set write protect feature
Contents
Arguments
fd File descriptor of nvme device
nsid Namespace ID
state Write Protection State
save Save value across power states
result The command completion result from CQE dword0
Name
nvme_set_features_write_protect2 - Set write protect feature
Return
The nvme command status if a response was received (see enumnvme_status_field) or -1 with errno set
otherwise.
May 2025 nvme_set_features_write_protect2 nvme_set_features_write_protect2(2)
Synopsis
intnvme_set_features_write_protect2(intfd,__u32nsid,enumnvme_feat_nswpcfg_statestate,boolsave,__u32*result);
