Lines Matching refs:wwn_list

362 				 * Node wwn is required for the wwn_list
491 * wwn_list pointer:
494 * wwn_list points to a linked list of wwn's.
552 * remove it from the wwn_list.
750 g_free_wwn_list(struct wwn_list_struct **wwn_list)
754 /* return if wwn_list is NULL */
755 if (wwn_list == NULL) {
759 for (; *wwn_list != NULL; *wwn_list = next) {
760 next = (*wwn_list)->wwn_next;
761 if ((*wwn_list)->physical_path != NULL)
762 (void) g_destroy_data((*wwn_list)->physical_path);
763 if ((*wwn_list)->logical_path != NULL)
764 (void) g_destroy_data((*wwn_list)->logical_path);
765 (void) g_destroy_data(*wwn_list);
767 wwn_list = NULL;
774 g_sort_wwn_list(struct wwn_list_struct **wwn_list)
783 * Count the number of wwn_list in the list
785 for (n = 0, wwn_list_ptr = *wwn_list;
795 * Allocate a simple wwn_list array and fill it in
801 for (wwn_list_ptr = *wwn_list;
809 * Sort the wwn_list array
815 * Rebuild the linked list wwn_list structure
818 *wwn_list = *wwn_list_array_ptr1;
4244 WWN_list *wwn_list, *wwn_list_ptr;
4250 wwn_list = wwn_list_ptr = NULL;
4256 if (err = g_get_wwn_list(&wwn_list, verbose)) {
4260 for (wwn_list_ptr = wwn_list; wwn_list_ptr != NULL;
4270 (void) g_free_wwn_list(&wwn_list);
4287 (void) g_free_wwn_list(&wwn_list);
4307 struct wwn_list_struct *wwn_list, int verbose)
4319 if ((multipath_list == NULL) || (wwn_list == NULL)) {
4324 err = get_multipath_disk(devpath, multipath_list, wwn_list);
4326 err = get_multipath(devpath, multipath_list, wwn_list);
4337 * wwn_list: returned from g_get_wwn_list or devices_get_all
4346 struct wwn_list_struct *wwn_list)
4355 if (wwn_list == NULL || multipath_list == NULL || devpath == NULL) {
4379 for (wwn_list_ptr = wwn_list; wwn_list_ptr != NULL;
4426 struct wwn_list_struct *wwn_list)
4451 if (wwn_list == NULL) {
4455 for (*node_wwn_s = NULL, wwn_list_ptr = wwn_list;
4481 for (wwn_list_ptr = wwn_list; wwn_list_ptr != NULL;
5542 WWN_list *wwn_list, *l1, *l2;
5551 wwn_list = *wwn_list_ptr = NULL;
5651 if (wwn_list == NULL) {
5652 l1 = wwn_list = l2;
5663 *wwn_list_ptr = wwn_list; /* pass back ptr to list */
5726 WWN_list *wwn_list, *wwn_list_save;
5739 wwn_list = *wwn_list_ptr;
5764 for (wwn_list = *wwn_list_ptr; wwn_list != NULL;
5765 wwn_list = wwn_list->wwn_next) {
5766 if (strcmp(wwn_list->physical_path, result) == 0) {
5770 if ((wwn_list->logical_path = (char *)
5775 strcpy(wwn_list->logical_path, namebuf);
5790 wwn_list = *wwn_list_ptr;
5791 while (wwn_list != NULL) {
5792 if (wwn_list->logical_path == NULL) {
5793 free(wwn_list->physical_path);
5794 wwn_list_save = wwn_list;
5795 if (wwn_list->wwn_prev != NULL) {
5796 wwn_list->wwn_prev->wwn_next =
5797 wwn_list->wwn_next;
5802 *wwn_list_ptr = wwn_list->wwn_next;
5804 if (wwn_list->wwn_next != NULL) {
5805 wwn_list->wwn_next->wwn_prev =
5806 wwn_list->wwn_prev;
5808 wwn_list = wwn_list->wwn_next;
5811 wwn_list = wwn_list->wwn_next;