diff options
Diffstat (limited to 'include/linux/debugfs.h')
| -rw-r--r-- | include/linux/debugfs.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index 420311bcee38..9beb636b97eb 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h | |||
| @@ -116,6 +116,12 @@ struct dentry *debugfs_create_devm_seqfile(struct device *dev, const char *name, | |||
| 116 | 116 | ||
| 117 | bool debugfs_initialized(void); | 117 | bool debugfs_initialized(void); |
| 118 | 118 | ||
| 119 | ssize_t debugfs_read_file_bool(struct file *file, char __user *user_buf, | ||
| 120 | size_t count, loff_t *ppos); | ||
| 121 | |||
| 122 | ssize_t debugfs_write_file_bool(struct file *file, const char __user *user_buf, | ||
| 123 | size_t count, loff_t *ppos); | ||
| 124 | |||
| 119 | #else | 125 | #else |
| 120 | 126 | ||
| 121 | #include <linux/err.h> | 127 | #include <linux/err.h> |
| @@ -282,6 +288,20 @@ static inline struct dentry *debugfs_create_devm_seqfile(struct device *dev, | |||
| 282 | return ERR_PTR(-ENODEV); | 288 | return ERR_PTR(-ENODEV); |
| 283 | } | 289 | } |
| 284 | 290 | ||
| 291 | static inline ssize_t debugfs_read_file_bool(struct file *file, | ||
| 292 | char __user *user_buf, | ||
| 293 | size_t count, loff_t *ppos) | ||
| 294 | { | ||
| 295 | return -ENODEV; | ||
| 296 | } | ||
| 297 | |||
| 298 | static inline ssize_t debugfs_write_file_bool(struct file *file, | ||
| 299 | const char __user *user_buf, | ||
| 300 | size_t count, loff_t *ppos) | ||
| 301 | { | ||
| 302 | return -ENODEV; | ||
| 303 | } | ||
| 304 | |||
| 285 | #endif | 305 | #endif |
| 286 | 306 | ||
| 287 | #endif | 307 | #endif |
