Lines Matching refs:iter
246 scf_iter_t *iter; in sa_extract_pgroup() local
269 iter = scf_iter_create(handle->handle); in sa_extract_pgroup()
278 if (iter == NULL || value == NULL || prop == NULL || in sa_extract_pgroup()
283 if (scf_iter_pg_properties(iter, pg) == 0) { in sa_extract_pgroup()
285 while (scf_iter_next_property(iter, prop) > 0) { in sa_extract_pgroup()
315 if (iter != NULL) in sa_extract_pgroup()
316 scf_iter_destroy(iter); in sa_extract_pgroup()
470 scf_iter_t *iter; in sa_share_from_pgroup() local
497 iter = scf_iter_create(handle->handle); in sa_share_from_pgroup()
521 if (iter == NULL || value == NULL || prop == NULL || name == NULL) in sa_share_from_pgroup()
525 if (scf_iter_pg_properties(iter, pg) != 0) in sa_share_from_pgroup()
528 while (scf_iter_next_property(iter, prop) > 0) { in sa_share_from_pgroup()
621 if (iter != NULL) in sa_share_from_pgroup()
622 scf_iter_destroy(iter); in sa_share_from_pgroup()
706 scf_iter_t *iter = NULL; in sa_share_props_from_pgroup() local
812 iter = scf_iter_create(handle->handle); in sa_share_props_from_pgroup()
818 if (iter == NULL || value == NULL || prop == NULL || name == NULL) in sa_share_props_from_pgroup()
822 if (scf_iter_pg_properties(iter, pg) == 0) { in sa_share_props_from_pgroup()
823 while (scf_iter_next_property(iter, prop) > 0) { in sa_share_props_from_pgroup()
850 if (iter != NULL) in sa_share_props_from_pgroup()
851 scf_iter_destroy(iter); in sa_share_props_from_pgroup()
876 scf_iter_t *iter; in sa_extract_group() local
889 iter = scf_iter_create(handle->handle); in sa_extract_group()
890 if (iter == NULL) { in sa_extract_group()
918 if (scf_iter_instance_pgs(iter, instance) != 0) { in sa_extract_group()
922 while (scf_iter_next_pg(iter, handle->pg) > 0) { in sa_extract_group()
1022 if (have_shares && scf_iter_instance_pgs(iter, instance) == 0) { in sa_extract_group()
1023 while (scf_iter_next_pg(iter, handle->pg) > 0) { in sa_extract_group()
1041 if (iter != NULL) in sa_extract_group()
1042 scf_iter_destroy(iter); in sa_extract_group()
1112 scf_iter_t *iter; in sa_get_config() local
1116 iter = scf_iter_create(handle->handle); in sa_get_config()
1117 if (instance != NULL && iter != NULL) { in sa_get_config()
1118 if ((ret = scf_iter_service_instances(iter, in sa_get_config()
1120 while ((ret = scf_iter_next_instance(iter, in sa_get_config()
1137 if (iter != NULL) in sa_get_config()
1138 scf_iter_destroy(iter); in sa_get_config()