nvme_set_features_write_protect - Set write protect feature
Contents
Arguments
fd File descriptor of nvme device
state Write Protection State
save Save value across power states
result The command completion result from CQE dword0
Description
Deprecated: doesn't support specifying a NSID. Use nvme_set_features_write_protect2 instead.
Name
nvme_set_features_write_protect - 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_protect nvme_set_features_write_protect(2)
Synopsis
intnvme_set_features_write_protect(intfd,enumnvme_feat_nswpcfg_statestate,boolsave,__u32*result);
