Lines Matching refs:module
23 int get_module_type(struct elf_module *module) in get_module_type() argument
25 if(module->main_func) return EXEC_MODULE; in get_module_type()
41 struct elf_module *module = module_alloc(name);
43 if (module == NULL)
46 res = module_load(module);
48 module_unload(module);
52 if (module->main_func == NULL) {
54 module_unload(module);
84 __syslinux_current = module;
85 __mem_set_tag_global((malloc_tag_t)module);
103 ret_val = setjmp(module->u.x.process_exit);
107 else if (!module->main_func)
110 exit((module->main_func)(argc, args)); /* Actually run! */
113 __free_tagged(module);
119 res = module_unload(module);
161 struct elf_module *module = module_alloc(name); in spawn_load() local
167 if (module == NULL) in spawn_load()
170 if (get_module_type(module) == EXEC_MODULE) { in spawn_load()
179 if (!strcmp(cur_module->name, module->name)) { in spawn_load()
180 dprintf("We is running this module %s already!", module->name); in spawn_load()
185 res = module_load(module); in spawn_load()
187 dprintf("failed to load module %s\n", module->name); in spawn_load()
191 type = get_module_type(module); in spawn_load()
194 type, cur_module->name, module->name); in spawn_load()
202 __syslinux_current = module; in spawn_load()
206 ret_val = setjmp(module->u.x.process_exit); in spawn_load()
210 else if (!module->main_func) in spawn_load()
213 exit((module->main_func)(argc, argv)); /* Actually run! */ in spawn_load()
222 res = module_unload(module); in spawn_load()
230 _module_unload(module); in spawn_load()