logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

nvme_set_features_write_protect2 - Set write protect feature

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);

See Also