aboutsummaryrefslogtreecommitdiff
path: root/include/linux/nd.h
diff options
context:
space:
mode:
authorDan Williams2016-07-09 00:12:52 -0700
committerDan Williams2016-07-12 15:13:48 -0700
commit476f848aaee466fd5d74f123fa652e757f2baeba (patch)
treed84cdd4fdb50252dfc5d1e2916b665d4f5570b76 /include/linux/nd.h
parent7e267a8c790edfde9b697cbe944ee566f41219c3 (diff)
libnvdimm, pmem: flush posted-write queues on shutdown
Commit writes to media on system shutdown or pmem driver unload. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/nd.h')
-rw-r--r--include/linux/nd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nd.h b/include/linux/nd.h
index aee2761d294c..1ecd64643512 100644
--- a/include/linux/nd.h
+++ b/include/linux/nd.h
@@ -26,6 +26,7 @@ struct nd_device_driver {
unsigned long type;
int (*probe)(struct device *dev);
int (*remove)(struct device *dev);
+ void (*shutdown)(struct device *dev);
void (*notify)(struct device *dev, enum nvdimm_event event);
};