diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sysfs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 1885d21b0c80..976c4664b216 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
| @@ -155,6 +155,9 @@ void sysfs_remove_link(struct kobject *kobj, const char *name); | |||
| 155 | int sysfs_rename_link(struct kobject *kobj, struct kobject *target, | 155 | int sysfs_rename_link(struct kobject *kobj, struct kobject *target, |
| 156 | const char *old_name, const char *new_name); | 156 | const char *old_name, const char *new_name); |
| 157 | 157 | ||
| 158 | void sysfs_delete_link(struct kobject *dir, struct kobject *targ, | ||
| 159 | const char *name); | ||
| 160 | |||
| 158 | int __must_check sysfs_create_group(struct kobject *kobj, | 161 | int __must_check sysfs_create_group(struct kobject *kobj, |
| 159 | const struct attribute_group *grp); | 162 | const struct attribute_group *grp); |
| 160 | int sysfs_update_group(struct kobject *kobj, | 163 | int sysfs_update_group(struct kobject *kobj, |
| @@ -269,6 +272,11 @@ static inline int sysfs_rename_link(struct kobject *k, struct kobject *t, | |||
| 269 | return 0; | 272 | return 0; |
| 270 | } | 273 | } |
| 271 | 274 | ||
| 275 | static inline void sysfs_delete_link(struct kobject *k, struct kobject *t, | ||
| 276 | const char *name) | ||
| 277 | { | ||
| 278 | } | ||
| 279 | |||
| 272 | static inline int sysfs_create_group(struct kobject *kobj, | 280 | static inline int sysfs_create_group(struct kobject *kobj, |
| 273 | const struct attribute_group *grp) | 281 | const struct attribute_group *grp) |
| 274 | { | 282 | { |
