summaryrefslogtreecommitdiff
path: root/include/linux/sysfs.h
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2002-10-17 01:43:27 -0700
committerPatrick Mochel <mochel@osdl.org>2002-10-17 01:43:27 -0700
commit4c4897e21982b3283124bf026b4fa6146b6caef6 (patch)
treeb1897c8a30d8af0f1b615ebb3ce08c1ac8eaa385 /include/linux/sysfs.h
parentf0d31820d3f58963a6680df6b6ca85f73997c571 (diff)
sysfs: search replace to convert remaining names from driverfs* to sysfs*.
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r--include/linux/sysfs.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index d859f8c2e041..f191366880a3 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -29,7 +29,7 @@
struct driver_dir_entry;
struct attribute;
-struct driverfs_ops {
+struct sysfs_ops {
int (*open)(struct driver_dir_entry *);
int (*close)(struct driver_dir_entry *);
ssize_t (*show)(struct driver_dir_entry *, struct attribute *,char *, size_t, loff_t);
@@ -40,7 +40,7 @@ struct driver_dir_entry {
char * name;
struct dentry * dentry;
mode_t mode;
- struct driverfs_ops * ops;
+ struct sysfs_ops * ops;
};
struct attribute {
@@ -49,22 +49,20 @@ struct attribute {
};
extern int
-driverfs_create_dir(struct driver_dir_entry *, struct driver_dir_entry *);
+sysfs_create_dir(struct driver_dir_entry *, struct driver_dir_entry *);
extern void
-driverfs_remove_dir(struct driver_dir_entry * entry);
+sysfs_remove_dir(struct driver_dir_entry * entry);
extern int
-driverfs_create_file(struct attribute * attr,
+sysfs_create_file(struct attribute * attr,
struct driver_dir_entry * parent);
extern int
-driverfs_create_symlink(struct driver_dir_entry * parent,
+sysfs_create_symlink(struct driver_dir_entry * parent,
char * name, char * target);
extern void
-driverfs_remove_file(struct driver_dir_entry *, const char * name);
-
-extern int init_driverfs_fs(void);
+sysfs_remove_file(struct driver_dir_entry *, const char * name);
#endif /* _DDFS_H_ */