Lines Matching refs:list
101 char **list = NULL; in tep_plugin_list_options() local
108 char **temp = list; in tep_plugin_list_options()
115 list = realloc(list, count + 2); in tep_plugin_list_options()
116 if (!list) { in tep_plugin_list_options()
117 list = temp; in tep_plugin_list_options()
121 list[count++] = name; in tep_plugin_list_options()
122 list[count] = NULL; in tep_plugin_list_options()
125 return list; in tep_plugin_list_options()
129 free(list[count]); in tep_plugin_list_options()
130 free(list); in tep_plugin_list_options()
135 void tep_plugin_free_options_list(char **list) in tep_plugin_free_options_list() argument
139 if (!list) in tep_plugin_free_options_list()
142 if (list == INVALID_PLUGIN_LIST_OPTION) in tep_plugin_free_options_list()
145 for (i = 0; list[i]; i++) in tep_plugin_free_options_list()
146 free(list[i]); in tep_plugin_free_options_list()
148 free(list); in tep_plugin_free_options_list()
261 const struct plugin_list *list) in tep_print_plugins() argument
263 while (list) { in tep_print_plugins()
264 trace_seq_printf(s, "%s%s%s", prefix, list->name, suffix); in tep_print_plugins()
265 list = list->next; in tep_print_plugins()
275 struct plugin_list *list; in load_plugin() local
305 list = malloc(sizeof(*list)); in load_plugin()
306 if (!list) { in load_plugin()
311 list->next = *plugin_list; in load_plugin()
312 list->handle = handle; in load_plugin()
313 list->name = plugin; in load_plugin()
314 *plugin_list = list; in load_plugin()
422 struct plugin_list *list = NULL; in tep_load_plugins() local
424 load_plugins(pevent, ".so", load_plugin, &list); in tep_load_plugins()
425 return list; in tep_load_plugins()
432 struct plugin_list *list; in tep_unload_plugins() local
435 list = plugin_list; in tep_unload_plugins()
436 plugin_list = list->next; in tep_unload_plugins()
437 func = dlsym(list->handle, TEP_PLUGIN_UNLOADER_NAME); in tep_unload_plugins()
440 dlclose(list->handle); in tep_unload_plugins()
441 free(list->name); in tep_unload_plugins()
442 free(list); in tep_unload_plugins()