diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-07-09 00:12:52 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-07-12 15:13:48 -0700 |
commit | 476f848aaee466fd5d74f123fa652e757f2baeba (patch) | |
tree | d84cdd4fdb50252dfc5d1e2916b665d4f5570b76 /include/linux/nd.h | |
parent | 7e267a8c790edfde9b697cbe944ee566f41219c3 (diff) | |
download | blackbird-op-linux-476f848aaee466fd5d74f123fa652e757f2baeba.tar.gz blackbird-op-linux-476f848aaee466fd5d74f123fa652e757f2baeba.zip |
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.h | 1 |
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); }; |