X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=include%2Flinux%2Fsysfs.h;h=fea9a6b3fb7b54be1a26f4e430dc62a7dbcfff1b;hb=c2ecba71717c4f60671175fd26083c35a4b9ad58;hp=523405e1e1f6463a5f8aa925655d97234adaefae;hpb=d701d8a3bc1c0f56fa2759f631f86a320b66f13e;p=safe%2Fjmp%2Flinux-2.6 diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 523405e..fea9a6b 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -11,6 +11,7 @@ #define _SYSFS_H_ #include +#include #include #include @@ -78,6 +79,9 @@ struct sysfs_ops { #ifdef CONFIG_SYSFS +extern int sysfs_schedule_callback(struct kobject *kobj, + void (*func)(void *), void *data); + extern int __must_check sysfs_create_dir(struct kobject *, struct dentry *); @@ -132,6 +136,12 @@ extern int __must_check sysfs_init(void); #else /* CONFIG_SYSFS */ +static inline int sysfs_schedule_callback(struct kobject *kobj, + void (*func)(void *), void *data) +{ + return -ENOSYS; +} + static inline int sysfs_create_dir(struct kobject * k, struct dentry *shadow) { return 0;