Lines Matching refs:name

182 		    !strcmp(mod->name, modname))  in find_module()
188 static struct module *new_module(const char *name, size_t namelen) in new_module() argument
201 memcpy(mod->name, name, namelen); in new_module()
202 mod->name[namelen] = '\0'; in new_module()
203 mod->is_vmlinux = (strcmp(mod->name, "vmlinux") == 0); in new_module()
228 char name[]; member
237 static struct symbol *alloc_symbol(const char *name) in alloc_symbol() argument
239 struct symbol *s = xmalloc(sizeof(*s) + strlen(name) + 1); in alloc_symbol()
242 strcpy(s->name, name); in alloc_symbol()
250 hash_add(symbol_hashtable, &sym->hnode, hash_str(sym->name)); in hash_add_symbol()
253 static void sym_add_unresolved(const char *name, struct module *mod, bool weak) in sym_add_unresolved() argument
257 sym = alloc_symbol(name); in sym_add_unresolved()
263 static struct symbol *sym_find_with_module(const char *name, struct module *mod) in sym_find_with_module() argument
268 if (name[0] == '.') in sym_find_with_module()
269 name++; in sym_find_with_module()
271 hash_for_each_possible(symbol_hashtable, s, hnode, hash_str(name)) { in sym_find_with_module()
272 if (strcmp(s->name, name) == 0 && (!mod || s->module == mod)) in sym_find_with_module()
278 static struct symbol *find_symbol(const char *name) in find_symbol() argument
280 return sym_find_with_module(name, NULL); in find_symbol()
351 static struct symbol *sym_add_exported(const char *name, struct module *mod, in sym_add_exported() argument
354 struct symbol *s = find_symbol(name); in sym_add_exported()
358 mod->name, name, s->module->name, in sym_add_exported()
362 s = alloc_symbol(name); in sym_add_exported()
621 warn("\"%s\" [%s] is COMMON symbol\n", symname, mod->name); in handle_symbol()
1071 const char *label_name, *name, *data; in check_export_symbol() local
1081 mod->name, label_name); in check_export_symbol()
1087 error("%s: local symbol '%s' was exported\n", mod->name, in check_export_symbol()
1092 name = sym_name(elf, sym); in check_export_symbol()
1093 if (strcmp(label_name + strlen(prefix), name)) { in check_export_symbol()
1095 mod->name, name); in check_export_symbol()
1106 mod->name, data, name); in check_export_symbol()
1111 s = sym_add_exported(name, mod, is_gpl, data); in check_export_symbol()
1130 mod->name, name); in check_export_symbol()
1133 mod->name, name); in check_export_symbol()
1153 default_mismatch_handler(mod->name, elf, mismatch, sym, in check_section_mismatch()
1430 check_section(mod->name, elf, sechdr); in check_sec_ref()
1492 char *name; in extract_crcs_for_object() local
1497 name = p + strlen("\n#SYMVER "); in extract_crcs_for_object()
1499 p = strchr(name, ' '); in extract_crcs_for_object()
1503 namelen = p - name; in extract_crcs_for_object()
1513 name[namelen] = '\0'; in extract_crcs_for_object()
1521 sym = sym_find_with_module(name, mod); in extract_crcs_for_object()
1543 ret = snprintf(objlist, sizeof(objlist), "%s.mod", mod->name); in mod_set_crcs()
1605 mod->name, namespace); in read_symbols()
1626 get_src_version(mod->name, mod->srcversion, in read_symbols()
1738 exp = find_symbol(s->name); in check_exports()
1743 s->name, mod->name); in check_exports()
1748 s->name, mod->name); in check_exports()
1757 basename = get_basename(mod->name); in check_exports()
1763 basename, exp->name, exp->namespace); in check_exports()
1769 basename, exp->name); in check_exports()
1775 char *buf, *p, *name; in handle_white_list_exports() local
1780 while ((name = strsep(&p, "\n"))) { in handle_white_list_exports()
1781 struct symbol *sym = find_symbol(name); in handle_white_list_exports()
1816 mod_name = get_basename(mod->name); in check_modname_len()
1819 error("module name is too long [%s.ko]\n", mod->name); in check_modname_len()
1848 if (strstarts(mod->name, "drivers/staging")) in add_header()
1851 if (strstarts(mod->name, "tools/testing")) in add_header()
1866 sym->is_func ? "FUNC" : "DATA", sym->name, in add_exported_symbols()
1882 sym->name, mod->name, mod->is_vmlinux ? "" : ".ko", in add_exported_symbols()
1883 sym->name); in add_exported_symbols()
1886 sym->name, sym->crc, sym->is_gpl_only ? "_gpl" : ""); in add_exported_symbols()
1908 s->name, mod->name); in add_extended_versions()
1928 buf_printf(b, "\t\"%s\\0\"\n", s->name); in add_extended_versions()
1952 s->name, mod->name); in add_versions()
1955 if (strlen(s->name) >= MODULE_NAME_LEN) { in add_versions()
1961 s->name, mod->name); in add_versions()
1966 s->crc, s->name); in add_versions()
1994 p = get_basename(s->module->name); in add_depends()
2102 ret = snprintf(fname, sizeof(fname), "%s.mod.c", mod->name); in write_mod_c_file()
2190 sym->crc, sym->name, mod->name, in write_dump()
2210 buf_printf(&ns_deps_buf, "%s.ko:", mod->name); in write_namespace_deps_files()