diff options
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r-- | include/linux/sysfs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index f0496b3d1811..1885d21b0c80 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
@@ -20,6 +20,7 @@ | |||
20 | 20 | ||
21 | struct kobject; | 21 | struct kobject; |
22 | struct module; | 22 | struct module; |
23 | enum kobj_ns_type; | ||
23 | 24 | ||
24 | /* FIXME | 25 | /* FIXME |
25 | * The *owner field is no longer used. | 26 | * The *owner field is no longer used. |
@@ -168,10 +169,14 @@ void sysfs_remove_file_from_group(struct kobject *kobj, | |||
168 | void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr); | 169 | void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr); |
169 | void sysfs_notify_dirent(struct sysfs_dirent *sd); | 170 | void sysfs_notify_dirent(struct sysfs_dirent *sd); |
170 | struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd, | 171 | struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd, |
172 | const void *ns, | ||
171 | const unsigned char *name); | 173 | const unsigned char *name); |
172 | struct sysfs_dirent *sysfs_get(struct sysfs_dirent *sd); | 174 | struct sysfs_dirent *sysfs_get(struct sysfs_dirent *sd); |
173 | void sysfs_put(struct sysfs_dirent *sd); | 175 | void sysfs_put(struct sysfs_dirent *sd); |
174 | void sysfs_printk_last_file(void); | 176 | void sysfs_printk_last_file(void); |
177 | |||
178 | void sysfs_exit_ns(enum kobj_ns_type type, const void *tag); | ||
179 | |||
175 | int __must_check sysfs_init(void); | 180 | int __must_check sysfs_init(void); |
176 | 181 | ||
177 | #else /* CONFIG_SYSFS */ | 182 | #else /* CONFIG_SYSFS */ |
@@ -301,6 +306,7 @@ static inline void sysfs_notify_dirent(struct sysfs_dirent *sd) | |||
301 | } | 306 | } |
302 | static inline | 307 | static inline |
303 | struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd, | 308 | struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd, |
309 | const void *ns, | ||
304 | const unsigned char *name) | 310 | const unsigned char *name) |
305 | { | 311 | { |
306 | return NULL; | 312 | return NULL; |
@@ -313,6 +319,10 @@ static inline void sysfs_put(struct sysfs_dirent *sd) | |||
313 | { | 319 | { |
314 | } | 320 | } |
315 | 321 | ||
322 | static inline void sysfs_exit_ns(enum kobj_ns_type type, const void *tag) | ||
323 | { | ||
324 | } | ||
325 | |||
316 | static inline int __must_check sysfs_init(void) | 326 | static inline int __must_check sysfs_init(void) |
317 | { | 327 | { |
318 | return 0; | 328 | return 0; |