ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / fs / sysfs / sysfs.h
1
2 extern struct vfsmount * sysfs_mount;
3
4 extern struct inode * sysfs_new_inode(mode_t mode);
5 extern int sysfs_create(struct dentry *, int mode, int (*init)(struct inode *));
6
7 extern struct dentry * sysfs_get_dentry(struct dentry *, const char *);
8
9 extern int sysfs_add_file(struct dentry * dir, const struct attribute * attr);
10 extern void sysfs_hash_and_remove(struct dentry * dir, const char * name);
11
12 extern int sysfs_create_subdir(struct kobject *, const char *, struct dentry **);
13 extern void sysfs_remove_subdir(struct dentry *);