diff options
| author | Dan Williams <dan.j.williams@intel.com> | 2017-05-04 14:47:22 -0400 |
|---|---|---|
| committer | Dan Williams <dan.j.williams@intel.com> | 2017-05-04 18:41:39 -0400 |
| commit | 9d62ed96511823fa9c2ac7a819d7b4be22a9a6de (patch) | |
| tree | 960201b66f5fb6733dda4ab6b274fe6fafcf0e29 /include/uapi/linux | |
| parent | 8f078b38dd382710884ce7abd31a1935c440e6f8 (diff) | |
libnvdimm: handle locked label storage areas
Per the latest version of the "NVDIMM DSM Interface Example" [1], the
label data retrieval routine can report a "locked" status. In this case
all regions associated with that DIMM are disabled until the label area
is unlocked. Provide generic libnvdimm enabling for NVDIMMs with label
data area locking capabilities.
[1]: http://pmem.io/documents/
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/ndctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/ndctl.h b/include/uapi/linux/ndctl.h index ede5c6a62164..7ad3863cb88b 100644 --- a/include/uapi/linux/ndctl.h +++ b/include/uapi/linux/ndctl.h | |||
| @@ -169,6 +169,7 @@ enum { | |||
| 169 | enum { | 169 | enum { |
| 170 | ND_ARS_VOLATILE = 1, | 170 | ND_ARS_VOLATILE = 1, |
| 171 | ND_ARS_PERSISTENT = 2, | 171 | ND_ARS_PERSISTENT = 2, |
| 172 | ND_CONFIG_LOCKED = 1, | ||
| 172 | }; | 173 | }; |
| 173 | 174 | ||
| 174 | static inline const char *nvdimm_bus_cmd_name(unsigned cmd) | 175 | static inline const char *nvdimm_bus_cmd_name(unsigned cmd) |
