aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dax/dax-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dax/dax-private.h')
-rw-r--r--drivers/dax/dax-private.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/dax/dax-private.h b/drivers/dax/dax-private.h
index dbd077653b5c..620c3f4eefe7 100644
--- a/drivers/dax/dax-private.h
+++ b/drivers/dax/dax-private.h
@@ -16,6 +16,15 @@
16#include <linux/device.h> 16#include <linux/device.h>
17#include <linux/cdev.h> 17#include <linux/cdev.h>
18 18
19/* private routines between core files */
20struct dax_device;
21struct dax_device *inode_dax(struct inode *inode);
22struct inode *dax_inode(struct dax_device *dax_dev);
23
24/* temporary until devm_create_dax_dev moves to bus.c */
25extern const struct attribute_group *dax_attribute_groups[];
26void unregister_dev_dax(void *dev);
27
19/** 28/**
20 * struct dax_region - mapping infrastructure for dax devices 29 * struct dax_region - mapping infrastructure for dax devices
21 * @id: kernel-wide unique region for a memory range 30 * @id: kernel-wide unique region for a memory range
@@ -45,4 +54,9 @@ struct dev_dax {
45 struct dax_device *dax_dev; 54 struct dax_device *dax_dev;
46 struct device dev; 55 struct device dev;
47}; 56};
57
58static inline struct dev_dax *to_dev_dax(struct device *dev)
59{
60 return container_of(dev, struct dev_dax, dev);
61}
48#endif 62#endif