diff options
Diffstat (limited to 'include/linux/debugfs.h')
| -rw-r--r-- | include/linux/debugfs.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index 047567d34ca7..5a9c49534d08 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h | |||
| @@ -33,6 +33,9 @@ struct dentry *debugfs_create_file(const char *name, mode_t mode, | |||
| 33 | 33 | ||
| 34 | struct dentry *debugfs_create_dir(const char *name, struct dentry *parent); | 34 | struct dentry *debugfs_create_dir(const char *name, struct dentry *parent); |
| 35 | 35 | ||
| 36 | struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent, | ||
| 37 | const char *dest); | ||
| 38 | |||
| 36 | void debugfs_remove(struct dentry *dentry); | 39 | void debugfs_remove(struct dentry *dentry); |
| 37 | 40 | ||
| 38 | struct dentry *debugfs_create_u8(const char *name, mode_t mode, | 41 | struct dentry *debugfs_create_u8(const char *name, mode_t mode, |
| @@ -41,6 +44,8 @@ struct dentry *debugfs_create_u16(const char *name, mode_t mode, | |||
| 41 | struct dentry *parent, u16 *value); | 44 | struct dentry *parent, u16 *value); |
| 42 | struct dentry *debugfs_create_u32(const char *name, mode_t mode, | 45 | struct dentry *debugfs_create_u32(const char *name, mode_t mode, |
| 43 | struct dentry *parent, u32 *value); | 46 | struct dentry *parent, u32 *value); |
| 47 | struct dentry *debugfs_create_u64(const char *name, mode_t mode, | ||
| 48 | struct dentry *parent, u64 *value); | ||
| 44 | struct dentry *debugfs_create_bool(const char *name, mode_t mode, | 49 | struct dentry *debugfs_create_bool(const char *name, mode_t mode, |
| 45 | struct dentry *parent, u32 *value); | 50 | struct dentry *parent, u32 *value); |
| 46 | 51 | ||
| @@ -70,6 +75,13 @@ static inline struct dentry *debugfs_create_dir(const char *name, | |||
| 70 | return ERR_PTR(-ENODEV); | 75 | return ERR_PTR(-ENODEV); |
| 71 | } | 76 | } |
| 72 | 77 | ||
| 78 | static inline struct dentry *debugfs_create_symlink(const char *name, | ||
| 79 | struct dentry *parent, | ||
| 80 | const char *dest) | ||
| 81 | { | ||
| 82 | return ERR_PTR(-ENODEV); | ||
| 83 | } | ||
| 84 | |||
| 73 | static inline void debugfs_remove(struct dentry *dentry) | 85 | static inline void debugfs_remove(struct dentry *dentry) |
| 74 | { } | 86 | { } |
| 75 | 87 | ||
| @@ -94,6 +106,13 @@ static inline struct dentry *debugfs_create_u32(const char *name, mode_t mode, | |||
| 94 | return ERR_PTR(-ENODEV); | 106 | return ERR_PTR(-ENODEV); |
| 95 | } | 107 | } |
| 96 | 108 | ||
| 109 | static inline struct dentry *debugfs_create_u64(const char *name, mode_t mode, | ||
| 110 | struct dentry *parent, | ||
| 111 | u64 *value) | ||
| 112 | { | ||
| 113 | return ERR_PTR(-ENODEV); | ||
| 114 | } | ||
| 115 | |||
| 97 | static inline struct dentry *debugfs_create_bool(const char *name, mode_t mode, | 116 | static inline struct dentry *debugfs_create_bool(const char *name, mode_t mode, |
| 98 | struct dentry *parent, | 117 | struct dentry *parent, |
| 99 | u32 *value) | 118 | u32 *value) |
