diff options
| author | Greg Kroah-Hartman <greg@kroah.com> | 2004-06-21 01:14:21 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2004-06-21 01:14:21 -0700 |
| commit | 269986dcf4017c4bd44aa1f81d3b94349ca93296 (patch) | |
| tree | 96a0a74ae12f39af1a7f5e2062dea3e8987f28ee /include/linux/module.h | |
| parent | 9a85e04ec3e527234d8a2210e6ba04d7af9a4298 (diff) | |
| parent | c4a9c8212b8e954da29dc2e9002842729c0ba6d1 (diff) | |
merge
Diffstat (limited to 'include/linux/module.h')
| -rw-r--r-- | include/linux/module.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 2709330e8684..2ad187c3bda1 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -225,6 +225,22 @@ struct module_kobject struct module_attribute attr[0]; }; +/* Similar stuff for section attributes. */ +#define MODULE_SECT_NAME_LEN 32 +struct module_sect_attr +{ + struct attribute attr; + char name[MODULE_SECT_NAME_LEN]; + unsigned long address; +}; + +struct module_sections +{ + struct kobject kobj; + struct module_sect_attr attrs[0]; +}; + + struct module { enum module_state state; @@ -298,6 +314,9 @@ struct module Elf_Sym *symtab; unsigned long num_symtab; char *strtab; + + /* Section attributes */ + struct module_sections *sect_attrs; #endif /* Per-cpu data. */ |
