Debian Codegraph @

doc/man/nvme_get_features_write_protect.2

raw
1 .TH "nvme_get_features_write_protect" 9 "nvme_get_features_write_protect" "November 2025" "libnvme API manual" LINUX
2 .SH NAME
3 nvme_get_features_write_protect \- Get write protect feature
4 .SH SYNOPSIS
5 .B "int" nvme_get_features_write_protect
6 .BI "(int fd " ","
7 .BI "__u32 nsid " ","
8 .BI "enum nvme_get_features_sel sel " ","
9 .BI "__u32 *result " ");"
10 .SH ARGUMENTS
11 .IP "fd" 12
12 File descriptor of nvme device
13 .IP "nsid" 12
14 Namespace ID
15 .IP "sel" 12
16 Select which type of attribute to return, see \fIenum nvme_get_features_sel\fP
17 .IP "result" 12
18 The command completion result from CQE dword0
19 .SH "RETURN"
20 The nvme command status if a response was received (see
21 \fIenum nvme_status_field\fP) or -1 with errno set otherwise.