Lines Matching refs:name

48  * gModulesHash, and looked up by name.
53 char *name;
72 /* we store the loaded modules by directory path, and all known modules by module name
78 /** calculates hash for a module using its name */
84 const char *name = (const char *)_key;
87 return hash_hash_string(module->name) % range;
89 if (name != NULL)
90 return hash_hash_string(name) % range;
96 /** compares a module to a given name */
102 const char *name = (const char *)_key;
103 if (name == NULL)
106 return fssh_strcmp(module->name, name);
136 if (!info->name)
139 module = (struct module *)hash_lookup(sModulesHash, info->name);
141 FATAL(("Duplicate module name (%s) detected... ignoring new one\n", info->name));
148 TRACE(("create_module: name = \"%s\", file = \"%s\"\n", info->name, file));
150 module->name = fssh_strdup(info->name);
151 if (module->name == NULL) {
158 free(module->name);
195 TRACE(("initializing module %s (at %p)... \n", module->name, module->info->std_ops));
212 FATAL(("circular reference to %s\n", module->name));
216 FATAL(("tried to load module %s which is currently unloading\n", module->name));
220 FATAL(("cannot load module %s because its earlier unloading failed\n", module->name));
235 TRACE(("uninit_module(%s)\n", module->name));
243 fssh_panic("Trying to unload module %s which is initializing\n", module->name);
247 fssh_panic("Trying to unload module %s which is un-initializing\n", module->name);
256 TRACE(("uninitializing module %s...\n", module->name));
265 FATAL(("Error unloading module %s (%s)\n", module->name, fssh_strerror(status)));
286 fssh_dprintf("creation of built-in module \"%s\" failed!\n", info->name);
301 module, module->name, module->file, (int)module->offset, (int)module->ref_count,