diff options
author | Dan Williams <dan.j.williams@intel.com> | 2018-06-13 19:08:36 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-07-14 20:27:00 +0300 |
commit | 08e6b3c6e3a054f566367740c94b8c1d18e52056 (patch) | |
tree | 2b32de4d367f7fe923c2826b6b0be3269f91a82f /drivers/nvdimm/nd.h | |
parent | 1273c253c32b9a073a4d8921ed079177ccc7c8af (diff) | |
download | linux-08e6b3c6e3a054f566367740c94b8c1d18e52056.tar.xz |
libnvdimm: Introduce locked DIMM capacity support
When a DIMM is locked its namespace label area may not be. Introduce the
distinction of locked namespaces to allow namespace enumeration while
the capacity is locked.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/nd.h')
-rw-r--r-- | drivers/nvdimm/nd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvdimm/nd.h b/drivers/nvdimm/nd.h index 32e0364b48b9..9d17abd9f8d0 100644 --- a/drivers/nvdimm/nd.h +++ b/drivers/nvdimm/nd.h @@ -357,6 +357,7 @@ struct resource *nvdimm_allocate_dpa(struct nvdimm_drvdata *ndd, struct nd_label_id *label_id, resource_size_t start, resource_size_t n); resource_size_t nvdimm_namespace_capacity(struct nd_namespace_common *ndns); +bool nvdimm_namespace_locked(struct nd_namespace_common *ndns); struct nd_namespace_common *nvdimm_namespace_common_probe(struct device *dev); int nvdimm_namespace_attach_btt(struct nd_namespace_common *ndns); int nvdimm_namespace_detach_btt(struct nd_btt *nd_btt); |