diff options
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r-- | include/linux/sysfs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index fdaa0c6fc7a2..e0bf210ddffd 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
@@ -178,6 +178,9 @@ struct sysfs_ops { | |||
178 | 178 | ||
179 | #ifdef CONFIG_SYSFS | 179 | #ifdef CONFIG_SYSFS |
180 | 180 | ||
181 | int sysfs_schedule_callback(struct kobject *kobj, void (*func)(void *), | ||
182 | void *data, struct module *owner); | ||
183 | |||
181 | int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns); | 184 | int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns); |
182 | void sysfs_remove_dir(struct kobject *kobj); | 185 | void sysfs_remove_dir(struct kobject *kobj); |
183 | int __must_check sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name, | 186 | int __must_check sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name, |
@@ -251,6 +254,12 @@ static inline void sysfs_enable_ns(struct kernfs_node *kn) | |||
251 | 254 | ||
252 | #else /* CONFIG_SYSFS */ | 255 | #else /* CONFIG_SYSFS */ |
253 | 256 | ||
257 | static inline int sysfs_schedule_callback(struct kobject *kobj, | ||
258 | void (*func)(void *), void *data, struct module *owner) | ||
259 | { | ||
260 | return -ENOSYS; | ||
261 | } | ||
262 | |||
254 | static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) | 263 | static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) |
255 | { | 264 | { |
256 | return 0; | 265 | return 0; |