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 381f06db2fe5..e2cee22f578a 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
@@ -181,6 +181,10 @@ int sysfs_merge_group(struct kobject *kobj, | |||
181 | const struct attribute_group *grp); | 181 | const struct attribute_group *grp); |
182 | void sysfs_unmerge_group(struct kobject *kobj, | 182 | void sysfs_unmerge_group(struct kobject *kobj, |
183 | const struct attribute_group *grp); | 183 | const struct attribute_group *grp); |
184 | int sysfs_add_link_to_group(struct kobject *kobj, const char *group_name, | ||
185 | struct kobject *target, const char *link_name); | ||
186 | void sysfs_remove_link_from_group(struct kobject *kobj, const char *group_name, | ||
187 | const char *link_name); | ||
184 | 188 | ||
185 | void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr); | 189 | void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr); |
186 | void sysfs_notify_dirent(struct sysfs_dirent *sd); | 190 | void sysfs_notify_dirent(struct sysfs_dirent *sd); |
@@ -326,6 +330,18 @@ static inline void sysfs_unmerge_group(struct kobject *kobj, | |||
326 | { | 330 | { |
327 | } | 331 | } |
328 | 332 | ||
333 | static inline int sysfs_add_link_to_group(struct kobject *kobj, | ||
334 | const char *group_name, struct kobject *target, | ||
335 | const char *link_name) | ||
336 | { | ||
337 | return 0; | ||
338 | } | ||
339 | |||
340 | static inline void sysfs_remove_link_from_group(struct kobject *kobj, | ||
341 | const char *group_name, const char *link_name) | ||
342 | { | ||
343 | } | ||
344 | |||
329 | static inline void sysfs_notify(struct kobject *kobj, const char *dir, | 345 | static inline void sysfs_notify(struct kobject *kobj, const char *dir, |
330 | const char *attr) | 346 | const char *attr) |
331 | { | 347 | { |