aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/debugfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/debugfs.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/debugfs.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/debugfs.h b/sys/compat/linuxkpi/common/include/linux/debugfs.h
index ba1fa009dc62..4c9f52a0bc0f 100644
--- a/sys/compat/linuxkpi/common/include/linux/debugfs.h
+++ b/sys/compat/linuxkpi/common/include/linux/debugfs.h
@@ -47,6 +47,11 @@ struct debugfs_regset32 {
int nregs;
};
+struct debugfs_blob_wrapper {
+ void *data;
+ size_t size;
+};
+
struct dentry *debugfs_create_file(const char *name, umode_t mode,
struct dentry *parent, void *data,
const struct file_operations *fops);
@@ -75,8 +80,12 @@ void debugfs_remove_recursive(struct dentry *dentry);
void debugfs_create_bool(const char *name, umode_t mode, struct dentry *parent,
bool *value);
-
+void debugfs_create_u8(const char *name, umode_t mode, struct dentry *parent,
+ uint8_t *value);
void debugfs_create_ulong(const char *name, umode_t mode, struct dentry *parent,
unsigned long *value);
+struct dentry *debugfs_create_blob(const char *name, umode_t mode,
+ struct dentry *parent, struct debugfs_blob_wrapper *value);
+
#endif /* _LINUXKPI_LINUX_DEBUGFS_H_ */