aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/sysfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r--fs/sysfs/sysfs.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h
index f1629b4520a..27a5f4b4e3b 100644
--- a/fs/sysfs/sysfs.h
+++ b/fs/sysfs/sysfs.h
@@ -69,12 +69,14 @@ extern void sysfs_attach_dirent(struct sysfs_dirent *sd,
69 struct sysfs_dirent *parent_sd, 69 struct sysfs_dirent *parent_sd,
70 struct dentry *dentry); 70 struct dentry *dentry);
71 71
72extern int sysfs_add_file(struct dentry *, const struct attribute *, int); 72extern int sysfs_add_file(struct sysfs_dirent *dir_sd,
73extern int sysfs_hash_and_remove(struct dentry * dir, const char * name); 73 const struct attribute *attr, int type);
74extern int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const char *name);
74extern struct sysfs_dirent *sysfs_find(struct sysfs_dirent *dir, const char * name); 75extern struct sysfs_dirent *sysfs_find(struct sysfs_dirent *dir, const char * name);
75 76
76extern int sysfs_create_subdir(struct kobject *, const char *, struct dentry **); 77extern int sysfs_create_subdir(struct kobject *kobj, const char *name,
77extern void sysfs_remove_subdir(struct dentry *); 78 struct sysfs_dirent **p_sd);
79extern void sysfs_remove_subdir(struct sysfs_dirent *sd);
78 80
79extern void sysfs_drop_dentry(struct sysfs_dirent *sd); 81extern void sysfs_drop_dentry(struct sysfs_dirent *sd);
80extern int sysfs_setattr(struct dentry *dentry, struct iattr *iattr); 82extern int sysfs_setattr(struct dentry *dentry, struct iattr *iattr);