diff options
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r-- | fs/sysfs/sysfs.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index f1629b4520aa..27a5f4b4e3b0 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 | ||
72 | extern int sysfs_add_file(struct dentry *, const struct attribute *, int); | 72 | extern int sysfs_add_file(struct sysfs_dirent *dir_sd, |
73 | extern int sysfs_hash_and_remove(struct dentry * dir, const char * name); | 73 | const struct attribute *attr, int type); |
74 | extern int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const char *name); | ||
74 | extern struct sysfs_dirent *sysfs_find(struct sysfs_dirent *dir, const char * name); | 75 | extern struct sysfs_dirent *sysfs_find(struct sysfs_dirent *dir, const char * name); |
75 | 76 | ||
76 | extern int sysfs_create_subdir(struct kobject *, const char *, struct dentry **); | 77 | extern int sysfs_create_subdir(struct kobject *kobj, const char *name, |
77 | extern void sysfs_remove_subdir(struct dentry *); | 78 | struct sysfs_dirent **p_sd); |
79 | extern void sysfs_remove_subdir(struct sysfs_dirent *sd); | ||
78 | 80 | ||
79 | extern void sysfs_drop_dentry(struct sysfs_dirent *sd); | 81 | extern void sysfs_drop_dentry(struct sysfs_dirent *sd); |
80 | extern int sysfs_setattr(struct dentry *dentry, struct iattr *iattr); | 82 | extern int sysfs_setattr(struct dentry *dentry, struct iattr *iattr); |