1libnvme(9)                        API Manual                        libnvme(9)
2
3
4

NAME

6       enum  nvme_id_ctrl_nwpc  -  This field indicates the optional namespace
7       write protection capabilities supported by the controller.
8

SYNOPSIS

10       enum nvme_id_ctrl_nwpc {
11           NVME_CTRL_NWPC_WRITE_PROTECT ,
12           NVME_CTRL_NWPC_WRITE_PROTECT_POWER_CYCLE ,
13           NVME_CTRL_NWPC_WRITE_PROTECT_PERMANENT
14
15       };
16

Constants

18       NVME_CTRL_NWPC_WRITE_PROTECT
19                   If set, then the controller shall support the No Write Pro‐
20                   tect  and  Write  Protect namespace write protection states
21                   and may support the Write Protect Until Power  Cycle  state
22                   and  Permanent  Write  Protect  namespace  write protection
23                   states.
24
25       NVME_CTRL_NWPC_WRITE_PROTECT_POWER_CYCLE
26                   If set, then the controller supports the Write Protect  Un‐
27                   til Power Cycle state.
28
29       NVME_CTRL_NWPC_WRITE_PROTECT_PERMANENT
30                   If  set,  then  the controller supports the Permanent Write
31                   Protect state.
32
33
34
35April 2023                  enum nvme_id_ctrl_nwpc                  libnvme(9)
Impressum