aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sysfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r--include/linux/sysfs.h9
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
181int sysfs_schedule_callback(struct kobject *kobj, void (*func)(void *),
182 void *data, struct module *owner);
183
181int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns); 184int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns);
182void sysfs_remove_dir(struct kobject *kobj); 185void sysfs_remove_dir(struct kobject *kobj);
183int __must_check sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name, 186int __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
257static inline int sysfs_schedule_callback(struct kobject *kobj,
258 void (*func)(void *), void *data, struct module *owner)
259{
260 return -ENOSYS;
261}
262
254static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) 263static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns)
255{ 264{
256 return 0; 265 return 0;