diff options
Diffstat (limited to 'include/linux/sysfs.h')
| -rw-r--r-- | include/linux/sysfs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 523405e1e1f6..fea9a6b3fb7b 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | #define _SYSFS_H_ | 11 | #define _SYSFS_H_ |
| 12 | 12 | ||
| 13 | #include <linux/compiler.h> | 13 | #include <linux/compiler.h> |
| 14 | #include <linux/errno.h> | ||
| 14 | #include <linux/list.h> | 15 | #include <linux/list.h> |
| 15 | #include <asm/atomic.h> | 16 | #include <asm/atomic.h> |
| 16 | 17 | ||
| @@ -78,6 +79,9 @@ struct sysfs_ops { | |||
| 78 | 79 | ||
| 79 | #ifdef CONFIG_SYSFS | 80 | #ifdef CONFIG_SYSFS |
| 80 | 81 | ||
| 82 | extern int sysfs_schedule_callback(struct kobject *kobj, | ||
| 83 | void (*func)(void *), void *data); | ||
| 84 | |||
| 81 | extern int __must_check | 85 | extern int __must_check |
| 82 | sysfs_create_dir(struct kobject *, struct dentry *); | 86 | sysfs_create_dir(struct kobject *, struct dentry *); |
| 83 | 87 | ||
| @@ -132,6 +136,12 @@ extern int __must_check sysfs_init(void); | |||
| 132 | 136 | ||
| 133 | #else /* CONFIG_SYSFS */ | 137 | #else /* CONFIG_SYSFS */ |
| 134 | 138 | ||
| 139 | static inline int sysfs_schedule_callback(struct kobject *kobj, | ||
| 140 | void (*func)(void *), void *data) | ||
| 141 | { | ||
| 142 | return -ENOSYS; | ||
| 143 | } | ||
| 144 | |||
| 135 | static inline int sysfs_create_dir(struct kobject * k, struct dentry *shadow) | 145 | static inline int sysfs_create_dir(struct kobject * k, struct dentry *shadow) |
| 136 | { | 146 | { |
| 137 | return 0; | 147 | return 0; |
