Lines Matching refs:list
110 char **list = NULL; in tep_plugin_list_options() local
117 char **temp = list; in tep_plugin_list_options()
124 list = realloc(list, count + 2); in tep_plugin_list_options()
125 if (!list) { in tep_plugin_list_options()
126 list = temp; in tep_plugin_list_options()
130 list[count++] = name; in tep_plugin_list_options()
131 list[count] = NULL; in tep_plugin_list_options()
134 return list; in tep_plugin_list_options()
138 free(list[count]); in tep_plugin_list_options()
139 free(list); in tep_plugin_list_options()
144 void tep_plugin_free_options_list(char **list) in tep_plugin_free_options_list() argument
148 if (!list) in tep_plugin_free_options_list()
151 if (list == INVALID_PLUGIN_LIST_OPTION) in tep_plugin_free_options_list()
154 for (i = 0; list[i]; i++) in tep_plugin_free_options_list()
155 free(list[i]); in tep_plugin_free_options_list()
157 free(list); in tep_plugin_free_options_list()
434 const struct tep_plugin_list *list) in tep_print_plugins() argument
436 while (list) { in tep_print_plugins()
437 trace_seq_printf(s, "%s%s%s", prefix, list->name, suffix); in tep_print_plugins()
438 list = list->next; in tep_print_plugins()
449 struct tep_plugin_list *list; in load_plugin() local
489 list = malloc(sizeof(*list)); in load_plugin()
490 if (!list) { in load_plugin()
495 list->next = *plugin_list; in load_plugin()
496 list->handle = handle; in load_plugin()
497 list->name = plugin; in load_plugin()
498 *plugin_list = list; in load_plugin()
640 struct tep_plugin_list *list = NULL; in tep_load_plugins() local
642 tep_load_plugins_hook(tep, ".so", load_plugin, &list); in tep_load_plugins()
643 return list; in tep_load_plugins()
699 struct tep_plugin_list *list; in tep_unload_plugins() local
702 list = plugin_list; in tep_unload_plugins()
703 plugin_list = list->next; in tep_unload_plugins()
704 func = dlsym(list->handle, TEP_PLUGIN_UNLOADER_NAME); in tep_unload_plugins()
707 dlclose(list->handle); in tep_unload_plugins()
708 free(list->name); in tep_unload_plugins()
709 free(list); in tep_unload_plugins()