diff options
| author | Patrick Mochel <mochel@osdl.org> | 2002-11-24 08:30:41 -0600 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2002-11-24 08:30:41 -0600 |
| commit | a43b9aa9bc1e7243a60ca56ba2f1c973317dfffa (patch) | |
| tree | 9b48c6f58bd779550f8779f1b483e818d7736090 /include/linux | |
| parent | cebce9d8beb7493d5c82035db854a475f6a1ae66 (diff) | |
| parent | 8083cc3514c1f79c9694d7e8f4e8c446d88819b5 (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')
| -rw-r--r-- | include/linux/kobject.h | 9 |
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_ */ |
