Lines Matching refs:modname
20 char modname[MODULE_NAME_LEN]; in helper_get_module() local
24 filename2modname(module, modname); in helper_get_module()
27 for (i = 0; modname[i]; i++) in helper_get_module()
28 hash = ((hash << 5) + hash) + modname[i]; in helper_get_module()
32 if (strcmp(e->modname, modname) == 0) in helper_get_module()
38 e->modname = xstrdup(modname); in helper_get_module()
63 free(e->modname); in moddb_free()
92 char* FAST_FUNC filename2modname(const char *filename, char *modname) in filename2modname() argument
100 if (modname == NULL) in filename2modname()
101 modname = local_modname; in filename2modname()
108 modname[i] = (from[i] == '-') ? '_' : from[i]; in filename2modname()
109 modname[i] = '\0'; in filename2modname()
111 if (modname == local_modname) in filename2modname()
112 return xstrdup(modname); in filename2modname()
114 return modname; in filename2modname()