summaryrefslogtreecommitdiff
path: root/include/linux/kobject.h
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2002-12-04 06:07:19 -0600
committerPatrick Mochel <mochel@osdl.org>2002-12-04 06:07:19 -0600
commit8bed75c80972fbfb09c93dbbfcc79d8d0377263c (patch)
tree658a16e9a42bd6b7fe79768a7592717a19928f8a /include/linux/kobject.h
parent2becf2fd04bdad4a7d0acb94fef355a0b3febfdb (diff)
parent6f614c99601d8d5f2b67a186806bbd21e5108fc5 (diff)
Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-core
Diffstat (limited to 'include/linux/kobject.h')
-rw-r--r--include/linux/kobject.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index 7b3157a78f7e..6b528c5a61cb 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -60,4 +60,13 @@ static inline void subsys_put(struct subsystem * s)
kobject_put(&s->kobj);
}
+struct subsys_attribute {
+ struct attribute attr;
+ ssize_t (*show)(struct subsystem *, char *, size_t, loff_t);
+ ssize_t (*store)(struct subsystem *, const char *, size_t, loff_t);
+};
+
+extern int subsys_create_file(struct subsystem * , struct subsys_attribute *);
+extern void subsys_remove_file(struct subsystem * , struct subsys_attribute *);
+
#endif /* _KOBJECT_H_ */