summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2002-10-29 20:41:43 -0800
committerPatrick Mochel <mochel@osdl.org>2002-10-29 20:41:43 -0800
commitc3f575f0143002cea266135ab7fb348b9bfad6aa (patch)
treeb6b8cd5a65a6df45da9412e95f88eb3b2b8f1e46 /include
parent332ad69da7aca8bdcd3f873bb2bfeb9d9a6d1f98 (diff)
kobjects: add array of default attributes to subsystems, and create on registration.
struct subsystem may now contain a pointer to a NULL-terminated array of default attributes to be exported when an object is registered with the subsystem. kobject registration will check the return values of the directory creation and the creation of each file, and handle it appropriately. The documentation has also been updated.
Diffstat (limited to 'include')
-rw-r--r--include/linux/kobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index 5b236b6678cb..d2f0629a6189 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -37,6 +37,7 @@ struct subsystem {
struct subsystem * parent;
void (*release)(struct kobject *);
struct sysfs_ops * sysfs_ops;
+ struct attribute ** default_attrs;
};
extern void subsystem_init(struct subsystem *);