Lines Matching refs:iter

249 	scf_iter_t *iter;  in sa_extract_pgroup()  local
272 iter = scf_iter_create(handle->handle); in sa_extract_pgroup()
281 if (iter == NULL || value == NULL || prop == NULL || in sa_extract_pgroup()
286 if (scf_iter_pg_properties(iter, pg) == 0) { in sa_extract_pgroup()
288 while (scf_iter_next_property(iter, prop) > 0) { in sa_extract_pgroup()
318 if (iter != NULL) in sa_extract_pgroup()
319 scf_iter_destroy(iter); in sa_extract_pgroup()
473 scf_iter_t *iter; in sa_share_from_pgroup() local
500 iter = scf_iter_create(handle->handle); in sa_share_from_pgroup()
524 if (iter == NULL || value == NULL || prop == NULL || name == NULL) in sa_share_from_pgroup()
528 if (scf_iter_pg_properties(iter, pg) != 0) in sa_share_from_pgroup()
531 while (scf_iter_next_property(iter, prop) > 0) { in sa_share_from_pgroup()
624 if (iter != NULL) in sa_share_from_pgroup()
625 scf_iter_destroy(iter); in sa_share_from_pgroup()
709 scf_iter_t *iter = NULL; in sa_share_props_from_pgroup() local
815 iter = scf_iter_create(handle->handle); in sa_share_props_from_pgroup()
821 if (iter == NULL || value == NULL || prop == NULL || name == NULL) in sa_share_props_from_pgroup()
825 if (scf_iter_pg_properties(iter, pg) == 0) { in sa_share_props_from_pgroup()
826 while (scf_iter_next_property(iter, prop) > 0) { in sa_share_props_from_pgroup()
853 if (iter != NULL) in sa_share_props_from_pgroup()
854 scf_iter_destroy(iter); in sa_share_props_from_pgroup()
879 scf_iter_t *iter; in sa_extract_group() local
892 iter = scf_iter_create(handle->handle); in sa_extract_group()
893 if (iter == NULL) { in sa_extract_group()
921 if (scf_iter_instance_pgs(iter, instance) != 0) { in sa_extract_group()
925 while (scf_iter_next_pg(iter, handle->pg) > 0) { in sa_extract_group()
1025 if (have_shares && scf_iter_instance_pgs(iter, instance) == 0) { in sa_extract_group()
1026 while (scf_iter_next_pg(iter, handle->pg) > 0) { in sa_extract_group()
1044 if (iter != NULL) in sa_extract_group()
1045 scf_iter_destroy(iter); in sa_extract_group()
1115 scf_iter_t *iter; in sa_get_config() local
1119 iter = scf_iter_create(handle->handle); in sa_get_config()
1120 if (instance != NULL && iter != NULL) { in sa_get_config()
1121 if ((ret = scf_iter_service_instances(iter, in sa_get_config()
1123 while ((ret = scf_iter_next_instance(iter, in sa_get_config()
1140 if (iter != NULL) in sa_get_config()
1141 scf_iter_destroy(iter); in sa_get_config()