diff options
Diffstat (limited to 'include/linux/sysfs.h')
| -rw-r--r-- | include/linux/sysfs.h | 16 | 
1 files changed, 16 insertions, 0 deletions
| diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 3c92121ba9af..30b881555fa5 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | #include <linux/errno.h> | 16 | #include <linux/errno.h> | 
| 17 | #include <linux/list.h> | 17 | #include <linux/list.h> | 
| 18 | #include <linux/lockdep.h> | 18 | #include <linux/lockdep.h> | 
| 19 | #include <linux/kobject_ns.h> | ||
| 19 | #include <asm/atomic.h> | 20 | #include <asm/atomic.h> | 
| 20 | 21 | ||
| 21 | struct kobject; | 22 | struct kobject; | 
| @@ -163,6 +164,10 @@ int sysfs_add_file_to_group(struct kobject *kobj, | |||
| 163 | const struct attribute *attr, const char *group); | 164 | const struct attribute *attr, const char *group); | 
| 164 | void sysfs_remove_file_from_group(struct kobject *kobj, | 165 | void sysfs_remove_file_from_group(struct kobject *kobj, | 
| 165 | const struct attribute *attr, const char *group); | 166 | const struct attribute *attr, const char *group); | 
| 167 | int sysfs_merge_group(struct kobject *kobj, | ||
| 168 | const struct attribute_group *grp); | ||
| 169 | void sysfs_unmerge_group(struct kobject *kobj, | ||
| 170 | const struct attribute_group *grp); | ||
| 166 | 171 | ||
| 167 | void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr); | 172 | void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr); | 
| 168 | void sysfs_notify_dirent(struct sysfs_dirent *sd); | 173 | void sysfs_notify_dirent(struct sysfs_dirent *sd); | 
| @@ -301,6 +306,17 @@ static inline void sysfs_remove_file_from_group(struct kobject *kobj, | |||
| 301 | { | 306 | { | 
| 302 | } | 307 | } | 
| 303 | 308 | ||
| 309 | static inline int sysfs_merge_group(struct kobject *kobj, | ||
| 310 | const struct attribute_group *grp) | ||
| 311 | { | ||
| 312 | return 0; | ||
| 313 | } | ||
| 314 | |||
| 315 | static inline void sysfs_unmerge_group(struct kobject *kobj, | ||
| 316 | const struct attribute_group *grp) | ||
| 317 | { | ||
| 318 | } | ||
| 319 | |||
| 304 | static inline void sysfs_notify(struct kobject *kobj, const char *dir, | 320 | static inline void sysfs_notify(struct kobject *kobj, const char *dir, | 
| 305 | const char *attr) | 321 | const char *attr) | 
| 306 | { | 322 | { | 
