Debian Codegraph @

doc/man/nvme_set_features_write_protect2.2

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