summaryrefslogtreecommitdiff
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorTejun Heo <tj@home-tj.org>2004-12-20 18:36:35 -0800
committerGreg Kroah-Hartman <greg@kroah.com>2004-12-20 18:36:35 -0800
commit064840485854ee9deb170fd40b33cfdd1de7fa1a (patch)
treef252daf0567dab8d5041a7bc5a8435049064ead6 /include/linux/module.h
parent6239c1cfe8b95d18533ca82d9b6d7cf7c55028a1 (diff)
[PATCH] module sysfs: sections attr reimplemented using attr group
Reimplement section attributes using attribute group. This makes more sense, for, while they reside in a separate subdirectory, they belong to the ownig module and their lifetime exactly equals the lifetime of the owning module, and it's simpler. Signed-off-by: Tejun Heo <tj@home-tj.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index a93281edc978..a3f3117574dd 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -227,14 +227,14 @@ enum module_state
#define MODULE_SECT_NAME_LEN 32
struct module_sect_attr
{
- struct attribute attr;
+ struct module_attribute mattr;
char name[MODULE_SECT_NAME_LEN];
unsigned long address;
};
-struct module_sections
+struct module_sect_attrs
{
- struct kobject kobj;
+ struct attribute_group grp;
struct module_sect_attr attrs[0];
};
@@ -313,7 +313,7 @@ struct module
char *strtab;
/* Section attributes */
- struct module_sections *sect_attrs;
+ struct module_sect_attrs *sect_attrs;
#endif
/* Per-cpu data. */