Lines Matching refs:module

33 	const void *module,
57 static int module_int_unload (module_loaded_t *module);
103 module_loaded_t *module; in module_handle() local
105 for ( module = module_list; module; module= module->next ) { in module_handle()
106 if ( !strcmp( module->name, file_name )) { in module_handle()
107 return module; in module_handle()
115 module_loaded_t *module; in module_unload() local
117 module = module_handle( file_name ); in module_unload()
118 if ( module ) { in module_unload()
119 module_int_unload( module ); in module_unload()
127 module_loaded_t *module; in module_load() local
137 module = module_handle( file_name ); in module_load()
138 if ( module ) { in module_load()
169 module = (module_loaded_t *)ch_calloc(1, sizeof(module_loaded_t) + in module_load()
171 if (module == NULL) { in module_load()
176 strcpy( module->name, file_name ); in module_load()
187 if ((module->lib = lt_dlopenext(file)) == NULL) { in module_load()
197 ch_free(module); in module_load()
207 if ((initialize = lt_dlsym(module->lib, "init_module")) == NULL) { in module_load()
214 lt_dlclose(module->lib); in module_load()
215 ch_free(module); in module_load()
239 lt_dlclose(module->lib); in module_load()
240 ch_free(module); in module_load()
250 module_int_unload(module); in module_load()
254 rc = (module_regtable[rc].proc)(module, file_name); in module_load()
259 module_int_unload(module); in module_load()
263 module->next = module_list; in module_load()
264 module_list = module; in module_load()
282 void *module_resolve (const void *module, const char *name) in module_resolve() argument
289 if (module == NULL || name == NULL) in module_resolve()
291 return(lt_dlsym(((module_loaded_t *)module)->lib, name)); in module_resolve()
294 static int module_int_unload (module_loaded_t *module) in module_int_unload() argument
299 if (module != NULL) { in module_int_unload()
301 if (module_list == module) { in module_int_unload()
302 module_list = module->next; in module_int_unload()
305 if (mod->next == module) { in module_int_unload()
306 mod->next = module->next; in module_int_unload()
316 if ((terminate = lt_dlsym(module->lib, "term_module"))) { in module_int_unload()
324 lt_dlclose(module->lib); in module_int_unload()
325 ch_free(module); in module_int_unload()
330 int load_null_module (const void *module, const char *file_name) in load_null_module() argument
338 const void *module, in load_extop_module() argument
347 ext_main = (SLAP_EXTOP_MAIN_FN *)module_resolve(module, "ext_main"); in load_extop_module()
352 ext_getoid = module_resolve(module, "ext_getoid"); in load_extop_module()