diff options
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r-- | include/linux/sysfs.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index c792f73ac7fa..6695040a0317 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
@@ -245,9 +245,9 @@ void sysfs_remove_link_from_group(struct kobject *kobj, const char *group_name, | |||
245 | 245 | ||
246 | void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr); | 246 | void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr); |
247 | void sysfs_notify_dirent(struct sysfs_dirent *sd); | 247 | void sysfs_notify_dirent(struct sysfs_dirent *sd); |
248 | struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd, | 248 | struct sysfs_dirent *sysfs_get_dirent_ns(struct sysfs_dirent *parent_sd, |
249 | const void *ns, | 249 | const unsigned char *name, |
250 | const unsigned char *name); | 250 | const void *ns); |
251 | struct sysfs_dirent *sysfs_get(struct sysfs_dirent *sd); | 251 | struct sysfs_dirent *sysfs_get(struct sysfs_dirent *sd); |
252 | void sysfs_put(struct sysfs_dirent *sd); | 252 | void sysfs_put(struct sysfs_dirent *sd); |
253 | 253 | ||
@@ -422,10 +422,9 @@ static inline void sysfs_notify(struct kobject *kobj, const char *dir, | |||
422 | static inline void sysfs_notify_dirent(struct sysfs_dirent *sd) | 422 | static inline void sysfs_notify_dirent(struct sysfs_dirent *sd) |
423 | { | 423 | { |
424 | } | 424 | } |
425 | static inline | 425 | static inline struct sysfs_dirent * |
426 | struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd, | 426 | sysfs_get_dirent_ns(struct sysfs_dirent *parent_sd, const unsigned char *name, |
427 | const void *ns, | 427 | const void *ns) |
428 | const unsigned char *name) | ||
429 | { | 428 | { |
430 | return NULL; | 429 | return NULL; |
431 | } | 430 | } |
@@ -462,4 +461,10 @@ static inline int sysfs_rename_link(struct kobject *kobj, struct kobject *target | |||
462 | return sysfs_rename_link_ns(kobj, target, old_name, new_name, NULL); | 461 | return sysfs_rename_link_ns(kobj, target, old_name, new_name, NULL); |
463 | } | 462 | } |
464 | 463 | ||
464 | static inline struct sysfs_dirent * | ||
465 | sysfs_get_dirent(struct sysfs_dirent *parent_sd, const unsigned char *name) | ||
466 | { | ||
467 | return sysfs_get_dirent_ns(parent_sd, name, NULL); | ||
468 | } | ||
469 | |||
465 | #endif /* _SYSFS_H_ */ | 470 | #endif /* _SYSFS_H_ */ |