Lines Matching defs:module

1 /* Postprocess module symbol versions
6 * Based in part on module-init-tools/depmod.c,file2alias
31 /* If we are modposting external module set to 1 */
57 /* In kernel, this size is defined in linux/module.h;
163 static struct module *find_module(const char *modname)
165 struct module *mod;
174 static struct module *new_module(const char *name, size_t namelen)
176 struct module *mod;
209 struct list_head list; /* link to module::exported_symbols or module::unresolved_symbols */
210 struct module *module;
238 * the list of unresolved symbols per module
260 static void sym_add_unresolved(const char *name, struct module *mod, bool weak)
270 static struct symbol *sym_find_with_module(const char *name, struct module *mod)
279 if (strcmp(s->name, name) == 0 && (!mod || s->module == mod))
361 static struct symbol *sym_add_exported(const char *name, struct module *mod,
366 if (s && (!external_module || s->module->is_vmlinux || s->module == mod)) {
368 mod->name, name, s->module->name,
369 s->module->is_vmlinux ? "" : ".ko");
373 s->module = mod;
613 static void handle_symbol(struct module *mod, struct elf_info *info,
912 * If a module parameter is declared __initdata and permissions=0
1083 static void check_export_symbol(struct module *mod, struct elf_info *elf,
1153 static void check_section_mismatch(struct module *mod, struct elf_info *elf,
1382 static void section_rela(struct module *mod, struct elf_info *elf,
1424 static void section_rel(struct module *mod, struct elf_info *elf,
1462 * A module includes a number of sections that are discarded
1465 * marked __initdata will be discarded when the module has been initialized.
1468 * only when a module is unloaded which never happens for built-in modules.
1473 static void check_sec_ref(struct module *mod, struct elf_info *elf)
1522 static void extract_crcs_for_object(const char *object, struct module *mod)
1588 * Parse them to retrieve CRCs for the current module.
1590 static void mod_set_crcs(struct module *mod)
1599 /* objects for a module are listed in the *.mod file. */
1622 struct module *mod;
1679 * Our trick to get versioning for module struct etc. - it's
1737 static void check_exports(struct module *mod)
1751 if (exp->module == mod) {
1758 s->module = exp->module;
1770 "module %s uses symbol %s from namespace %s, but does not import it.\n",
1776 error("GPL-incompatible module %s.ko uses GPL-only symbol '%s'\n",
1798 static void check_modname_len(struct module *mod)
1808 error("module name is too long [%s.ko]\n", mod->name);
1814 static void add_header(struct buffer *b, struct module *mod)
1816 buf_printf(b, "#include <linux/module.h>\n");
1818 * Include build-salt.h after module.h in order to
1839 buf_printf(b, "__visible struct module __this_module\n");
1867 static void add_exported_symbols(struct buffer *buf, struct module *mod)
1905 static void add_versions(struct buffer *b, struct module *mod)
1917 if (!s->module)
1936 static void add_depends(struct buffer *b, struct module *mod)
1943 if (s->module)
1944 s->module->seen = s->module->is_vmlinux;
1951 if (!s->module)
1954 if (s->module->seen)
1957 s->module->seen = true;
1958 p = strrchr(s->module->name, '/');
1962 p = s->module->name;
1969 static void add_srcversion(struct buffer *b, struct module *mod)
2035 static void write_vmlinux_export_c_file(struct module *mod)
2048 static void write_mod_c_file(struct module *mod)
2074 * 0x12345678<tab>symbol<tab>module<tab>export<tab>namespace
2090 struct module *mod;
2138 struct module *mod;
2160 struct module *mod;
2188 struct module *mod;