aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libnvdimm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/libnvdimm.h')
-rw-r--r--include/linux/libnvdimm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/libnvdimm.h b/include/linux/libnvdimm.h
index 1b627b109360..c130972e08c4 100644
--- a/include/linux/libnvdimm.h
+++ b/include/linux/libnvdimm.h
@@ -41,10 +41,20 @@ typedef int (*ndctl_fn)(struct nvdimm_bus_descriptor *nd_desc,
41 struct nvdimm *nvdimm, unsigned int cmd, void *buf, 41 struct nvdimm *nvdimm, unsigned int cmd, void *buf,
42 unsigned int buf_len); 42 unsigned int buf_len);
43 43
44struct nd_namespace_label;
45struct nvdimm_drvdata;
44struct nd_mapping { 46struct nd_mapping {
45 struct nvdimm *nvdimm; 47 struct nvdimm *nvdimm;
48 struct nd_namespace_label **labels;
46 u64 start; 49 u64 start;
47 u64 size; 50 u64 size;
51 /*
52 * @ndd is for private use at region enable / disable time for
53 * get_ndd() + put_ndd(), all other nd_mapping to ndd
54 * conversions use to_ndd() which respects enabled state of the
55 * nvdimm.
56 */
57 struct nvdimm_drvdata *ndd;
48}; 58};
49 59
50struct nvdimm_bus_descriptor { 60struct nvdimm_bus_descriptor {