Debian Codegraph @

doc/man/nvme_set_features_write_protect.2

raw
1 .TH "nvme_set_features_write_protect" 9 "nvme_set_features_write_protect" "November 2025" "libnvme API manual" LINUX
2 .SH NAME
3 nvme_set_features_write_protect \- Set write protect feature
4 .SH SYNOPSIS
5 .B "int" nvme_set_features_write_protect
6 .BI "(int fd " ","
7 .BI "enum nvme_feat_nswpcfg_state state " ","
8 .BI "bool save " ","
9 .BI "__u32 *result " ");"
10 .SH ARGUMENTS
11 .IP "fd" 12
12 File descriptor of nvme device
13 .IP "state" 12
14 Write Protection State
15 .IP "save" 12
16 Save value across power states
17 .IP "result" 12
18 The command completion result from CQE dword0
19 .SH "DESCRIPTION"
20
21 Deprecated: doesn't support specifying a NSID.
22 Use \fBnvme_set_features_write_protect2\fP instead.
23 .SH "RETURN"
24 The nvme command status if a response was received (see
25 \fIenum nvme_status_field\fP) or -1 with errno set otherwise.