diff options
Diffstat (limited to 'include/linux/debugfs.h')
-rw-r--r-- | include/linux/debugfs.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index da4c4983adbe..cb25af461054 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h | |||
@@ -51,11 +51,21 @@ struct dentry *debugfs_create_file(const char *name, umode_t mode, | |||
51 | struct dentry *parent, void *data, | 51 | struct dentry *parent, void *data, |
52 | const struct file_operations *fops); | 52 | const struct file_operations *fops); |
53 | 53 | ||
54 | struct dentry *debugfs_create_file_size(const char *name, umode_t mode, | ||
55 | struct dentry *parent, void *data, | ||
56 | const struct file_operations *fops, | ||
57 | loff_t file_size); | ||
58 | |||
54 | struct dentry *debugfs_create_dir(const char *name, struct dentry *parent); | 59 | struct dentry *debugfs_create_dir(const char *name, struct dentry *parent); |
55 | 60 | ||
56 | struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent, | 61 | struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent, |
57 | const char *dest); | 62 | const char *dest); |
58 | 63 | ||
64 | struct dentry *debugfs_create_automount(const char *name, | ||
65 | struct dentry *parent, | ||
66 | struct vfsmount *(*f)(void *), | ||
67 | void *data); | ||
68 | |||
59 | void debugfs_remove(struct dentry *dentry); | 69 | void debugfs_remove(struct dentry *dentry); |
60 | void debugfs_remove_recursive(struct dentry *dentry); | 70 | void debugfs_remove_recursive(struct dentry *dentry); |
61 | 71 | ||
@@ -124,6 +134,14 @@ static inline struct dentry *debugfs_create_file(const char *name, umode_t mode, | |||
124 | return ERR_PTR(-ENODEV); | 134 | return ERR_PTR(-ENODEV); |
125 | } | 135 | } |
126 | 136 | ||
137 | static inline struct dentry *debugfs_create_file_size(const char *name, umode_t mode, | ||
138 | struct dentry *parent, void *data, | ||
139 | const struct file_operations *fops, | ||
140 | loff_t file_size) | ||
141 | { | ||
142 | return ERR_PTR(-ENODEV); | ||
143 | } | ||
144 | |||
127 | static inline struct dentry *debugfs_create_dir(const char *name, | 145 | static inline struct dentry *debugfs_create_dir(const char *name, |
128 | struct dentry *parent) | 146 | struct dentry *parent) |
129 | { | 147 | { |