diff options
| author | Steve French <sfrench@us.ibm.com> | 2006-03-30 22:35:56 -0500 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2006-03-30 22:35:56 -0500 |
| commit | d62e54abca1146981fc9f98f85ff398a113a22c2 (patch) | |
| tree | 870420dbc4c65e716dcef8a802aafdc0ef97a8b4 /include/linux/debugfs.h | |
| parent | fd4a0b92db6a57cba8d03efbe1cebf91f9124ce0 (diff) | |
| parent | ce362c009250340358a7221f3cdb7954cbf19c01 (diff) | |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'include/linux/debugfs.h')
| -rw-r--r-- | include/linux/debugfs.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index a5fa6a6eede8..176e2d371577 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h | |||
| @@ -21,10 +21,15 @@ | |||
| 21 | 21 | ||
| 22 | struct file_operations; | 22 | struct file_operations; |
| 23 | 23 | ||
| 24 | struct debugfs_blob_wrapper { | ||
| 25 | void *data; | ||
| 26 | unsigned long size; | ||
| 27 | }; | ||
| 28 | |||
| 24 | #if defined(CONFIG_DEBUG_FS) | 29 | #if defined(CONFIG_DEBUG_FS) |
| 25 | struct dentry *debugfs_create_file(const char *name, mode_t mode, | 30 | struct dentry *debugfs_create_file(const char *name, mode_t mode, |
| 26 | struct dentry *parent, void *data, | 31 | struct dentry *parent, void *data, |
| 27 | struct file_operations *fops); | 32 | const struct file_operations *fops); |
| 28 | 33 | ||
| 29 | struct dentry *debugfs_create_dir(const char *name, struct dentry *parent); | 34 | struct dentry *debugfs_create_dir(const char *name, struct dentry *parent); |
| 30 | 35 | ||
| @@ -39,6 +44,9 @@ struct dentry *debugfs_create_u32(const char *name, mode_t mode, | |||
| 39 | struct dentry *debugfs_create_bool(const char *name, mode_t mode, | 44 | struct dentry *debugfs_create_bool(const char *name, mode_t mode, |
| 40 | struct dentry *parent, u32 *value); | 45 | struct dentry *parent, u32 *value); |
| 41 | 46 | ||
| 47 | struct dentry *debugfs_create_blob(const char *name, mode_t mode, | ||
| 48 | struct dentry *parent, | ||
| 49 | struct debugfs_blob_wrapper *blob); | ||
| 42 | #else | 50 | #else |
| 43 | 51 | ||
| 44 | #include <linux/err.h> | 52 | #include <linux/err.h> |
| @@ -94,6 +102,13 @@ static inline struct dentry *debugfs_create_bool(const char *name, mode_t mode, | |||
| 94 | return ERR_PTR(-ENODEV); | 102 | return ERR_PTR(-ENODEV); |
| 95 | } | 103 | } |
| 96 | 104 | ||
| 105 | static inline struct dentry *debugfs_create_blob(const char *name, mode_t mode, | ||
| 106 | struct dentry *parent, | ||
| 107 | struct debugfs_blob_wrapper *blob) | ||
| 108 | { | ||
| 109 | return ERR_PTR(-ENODEV); | ||
| 110 | } | ||
| 111 | |||
| 97 | #endif | 112 | #endif |
| 98 | 113 | ||
| 99 | #endif | 114 | #endif |
