aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sysfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r--include/linux/sysfs.h10
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
21struct kobject; 21struct kobject;
22struct module; 22struct module;
23enum 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,
168void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr); 169void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
169void sysfs_notify_dirent(struct sysfs_dirent *sd); 170void sysfs_notify_dirent(struct sysfs_dirent *sd);
170struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd, 171struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd,
172 const void *ns,
171 const unsigned char *name); 173 const unsigned char *name);
172struct sysfs_dirent *sysfs_get(struct sysfs_dirent *sd); 174struct sysfs_dirent *sysfs_get(struct sysfs_dirent *sd);
173void sysfs_put(struct sysfs_dirent *sd); 175void sysfs_put(struct sysfs_dirent *sd);
174void sysfs_printk_last_file(void); 176void sysfs_printk_last_file(void);
177
178void sysfs_exit_ns(enum kobj_ns_type type, const void *tag);
179
175int __must_check sysfs_init(void); 180int __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}
302static inline 307static inline
303struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd, 308struct 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
322static inline void sysfs_exit_ns(enum kobj_ns_type type, const void *tag)
323{
324}
325
316static inline int __must_check sysfs_init(void) 326static inline int __must_check sysfs_init(void)
317{ 327{
318 return 0; 328 return 0;