diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2022-10-22 18:12:16 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2022-11-28 17:21:50 +0000 |
| commit | 0fce2dc1573019d0732f33fa7c26cc228655d3e8 (patch) | |
| tree | 6be8940a20c5f993a996d15b24ad205686f016a5 /sys/compat/linuxkpi/common/include/linux/debugfs.h | |
| parent | af393426b321e885d1db5f0a0571f34969a59a9f (diff) | |
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/debugfs.h')
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/debugfs.h | 11 |
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_ */ |
