Lines Matching refs:addon

37 	struct module_addon * addon;	// the module addon this module live in
38 // if NULL, builtin module addon
46 int32 ref_count; // reference count of get_module() made using this addon
59 module_addon * ma; // current module addon looked up
60 module_info ** mi; // current module addon module info
110 if (m->addon) // built-in modules don't comes from addon...
111 atomic_add(&m->addon->ref_count, 1);
118 unload_module_addon(m->addon); // unload the module addon...
140 if (!m->addon)
141 // built-in modules are module addon less...
144 if (atomic_add(&m->addon->ref_count, -1) > 1)
145 // Still other module(s) using this module addon
148 // okay, this module addon is no more used
150 return unload_module_addon(m->addon);
243 // we have a module addon still loaded from a last call
256 // We've iterate all module names of this module addon. Find another one...
318 // Oh-oh, not a loadable module addon!?
434 printf("Failed to load %s addon: %s.\n", path, strerror(addon_id));
444 // No "modules" symbol found in this addon
445 printf("Symbol \"modules\" not found in %s addon: not a module addon!\n", path);
474 m->addon = ma;
485 // add this module addon to the list
497 // remove any appended modules by this module addon until we got error...
504 if (m->addon == ma) {
544 // built-in modules are addon-less, so nothing to do...
548 printf("B_KEEP_LOADED flag set for %s module addon. Will be *never* unloaded!\n",
554 // still someone needing this module addon, it seems?
558 // built-in addon, it seems...
563 printf("Failed to unload %s addon: %s.\n", ma->path, strerror(status));
570 // remove the modules coming from this module addon from g_modules list
574 if (m->addon == ma) {
594 // remove the module addon from g_module_addons list:
663 // try to load the module addon
685 printf(" Found it in %s addon module!\n",
686 found_module->addon ? found_module->addon->path : "BUILTIN");
708 if (m->state == MODULE_READY && m->keep_loaded && m->addon) {
710 // unload from memory, so keep the corresponding addon loaded
711 // printf("module %s set B_KEEP_LOADED flag:\nmodule addon %s will never be unloaded!\n",
712 // m->name, m->addon->path);
713 m->addon->keep_loaded = true;