Home
last modified time | relevance | path

Searched refs:iter (Results 1 – 25 of 149) sorted by relevance

123456

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_tree.c410 struct profile_iterator *iter; in profile_node_iterator_create() local
425 if ((iter = malloc(sizeof(struct profile_iterator))) == NULL) in profile_node_iterator_create()
428 iter->magic = PROF_MAGIC_ITERATOR; in profile_node_iterator_create()
429 iter->profile = profile; in profile_node_iterator_create()
430 iter->names = names; in profile_node_iterator_create()
431 iter->flags = flags; in profile_node_iterator_create()
432 iter->file = profile->first_file; in profile_node_iterator_create()
433 iter->done_idx = done_idx; in profile_node_iterator_create()
434 iter->node = 0; in profile_node_iterator_create()
435 iter->num = 0; in profile_node_iterator_create()
[all …]
/illumos-gate/usr/src/cmd/hal/hald-runner/
H A Dmain.c40 parse_udi (run_request *r, DBusMessage *msg, DBusMessageIter *iter) in parse_udi() argument
45 if (dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_STRING) in parse_udi()
47 dbus_message_iter_get_basic(iter, &tmpstr); in parse_udi()
50 if (!dbus_message_iter_next(iter)) in parse_udi()
60 parse_environment(run_request *r, DBusMessage *msg, DBusMessageIter *iter) in parse_environment() argument
66 if (dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_ARRAY) in parse_environment()
68 dbus_message_iter_recurse(iter, &sub_iter); in parse_environment()
78 if (!dbus_message_iter_next(iter) || dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_ARRAY) in parse_environment()
80 dbus_message_iter_recurse(iter, &sub_iter); in parse_environment()
93 DBusMessageIter iter; in handle_run() local
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dast-model.c24 static gboolean ast_get_iter(GtkTreeModel *tree_model, GtkTreeIter *iter,
26 static GtkTreePath *ast_get_path(GtkTreeModel *tree_model, GtkTreeIter *iter);
27 static void ast_get_value(GtkTreeModel *tree_model, GtkTreeIter *iter,
29 static gboolean ast_iter_next(GtkTreeModel *tree_model, GtkTreeIter *iter);
31 GtkTreeIter *iter,
33 static gboolean ast_iter_has_child(GtkTreeModel *tree_model, GtkTreeIter *iter);
34 static gint ast_iter_n_children (GtkTreeModel *tree_model, GtkTreeIter *iter);
35 static gboolean ast_iter_nth_child(GtkTreeModel *tree_model, GtkTreeIter *iter,
38 GtkTreeIter *iter,
68 gboolean ast_set_iter(GtkTreeIter *iter, AstNode *node) in ast_set_iter() argument
[all …]
H A Davl.h75 #define avl_foreach(iter, avl) avl_traverse(iter, avl, FORWARD) argument
101 #define avl_foreach_reverse(iter, avl) avl_traverse(iter, avl, BACKWARD) argument
116 void avl_iter_begin(AvlIter *iter, struct stree *avl, AvlDirection dir);
117 void avl_iter_next(AvlIter *iter);
118 #define avl_traverse(iter, avl, direction) \ argument
119 for (avl_iter_begin(&(iter), avl, direction); \
120 (iter).node != NULL; \
121 avl_iter_next(&iter))
H A Davl.c453 void avl_iter_begin(AvlIter *iter, struct stree *avl, AvlDirection dir) in avl_iter_begin() argument
457 iter->stack_index = 0; in avl_iter_begin()
458 iter->direction = dir; in avl_iter_begin()
461 iter->sm = NULL; in avl_iter_begin()
462 iter->node = NULL; in avl_iter_begin()
468 iter->stack[iter->stack_index++] = node; in avl_iter_begin()
472 iter->sm = (struct sm_state *) node->sm; in avl_iter_begin()
473 iter->node = node; in avl_iter_begin()
476 void avl_iter_next(AvlIter *iter) in avl_iter_next() argument
478 AvlNode *node = iter->node; in avl_iter_next()
[all …]
/illumos-gate/usr/src/lib/lib9p/common/
H A Dhashtable.c178 ht_iter_advance(struct ht_iter *iter, struct ht_item *cur) in ht_iter_advance() argument
184 h = iter->htit_parent; in ht_iter_advance()
192 slot = iter->htit_slot; in ht_iter_advance()
198 iter->htit_slot = slot; in ht_iter_advance()
209 ht_remove_at_iter(struct ht_iter *iter) in ht_remove_at_iter() argument
216 assert(iter != NULL); in ht_remove_at_iter()
218 if ((item = iter->htit_curr) == NULL) { in ht_remove_at_iter()
224 h = iter->htit_parent; in ht_remove_at_iter()
227 slot = iter->htit_slot; in ht_remove_at_iter()
228 iter->htit_next = ht_iter_advance(iter, item); in ht_remove_at_iter()
[all …]
/illumos-gate/usr/src/cmd/hal/hald/
H A Dhald_runner.c242 DBusMessageIter *iter = (DBusMessageIter *)user_data; in add_property_to_msg() local
255 dbus_message_iter_append_basic(iter, DBUS_TYPE_STRING, &env); in add_property_to_msg()
265 add_env(DBusMessageIter *iter, const gchar *key, const gchar *value) { in add_env() argument
268 dbus_message_iter_append_basic(iter, DBUS_TYPE_STRING, &env); in add_env()
273 add_basic_env(DBusMessageIter *iter, const gchar *udi) { in add_basic_env() argument
278 add_env(iter, "HALD_VERBOSE", "1"); in add_basic_env()
281 add_env(iter, "HALD_STARTUP", "1"); in add_basic_env()
284 add_env(iter, "HALD_USE_SYSLOG", "1"); in add_basic_env()
286 add_env(iter, "UDI", udi); in add_basic_env()
288 add_env(iter, "HALD_DIRECT_ADDR", server_addr); in add_basic_env()
[all …]
H A Ddevice_store.c222 GSList *iter; in hal_device_store_find() local
224 for (iter = store->devices; iter != NULL; iter = iter->next) { in hal_device_store_find()
225 HalDevice *d = iter->data; in hal_device_store_find()
239 GSList *iter; in hal_device_store_foreach() local
244 for (iter = store->devices; iter != NULL; iter = iter->next) { in hal_device_store_foreach()
245 HalDevice *d = HAL_DEVICE (iter->data); in hal_device_store_foreach()
284 GSList *iter; in hal_device_store_match_key_value_string() local
290 for (iter = store->devices; iter != NULL; iter = iter->next) { in hal_device_store_match_key_value_string()
291 HalDevice *d = HAL_DEVICE (iter->data); in hal_device_store_match_key_value_string()
314 GSList *iter; in hal_device_store_match_key_value_int() local
[all …]
H A Ddevice.c200 GSList *iter; in hal_device_merge_with_rewrite() local
209 for (iter = source->properties; iter != NULL; iter = iter->next) { in hal_device_merge_with_rewrite()
210 HalProperty *p = iter->data; in hal_device_merge_with_rewrite()
279 GSList *iter; in hal_device_merge() local
284 for (iter = source->properties; iter != NULL; iter = iter->next) { in hal_device_merge()
285 HalProperty *p = iter->data; in hal_device_merge()
343 for (iter = caps; iter != NULL; iter = iter->next) { in hal_device_merge()
344 if (!hal_device_has_capability (target, iter->data)) in hal_device_merge()
345 hal_device_add_capability (target, iter->data); in hal_device_merge()
354 GSList *iter; in hal_device_matches() local
[all …]
H A Dhald_dbus.c304 DBusMessageIter *iter = user_data; in foreach_device_get_udi() local
308 dbus_message_iter_append_basic (iter, DBUS_TYPE_STRING, &udi); in foreach_device_get_udi()
328 DBusMessageIter iter; in manager_get_all_devices() local
335 dbus_message_iter_init_append (reply, &iter); in manager_get_all_devices()
336 dbus_message_iter_open_container (&iter, in manager_get_all_devices()
345 dbus_message_iter_close_container (&iter, &iter_array); in manager_get_all_devices()
358 DBusMessageIter *iter; member
377 dbus_message_iter_append_basic (info->iter, in foreach_device_match_get_udi()
407 dbus_message_iter_append_basic (info->iter, in foreach_device_match_get_udi_tdl()
432 DBusMessageIter iter; in manager_find_device_string_match() local
[all …]
/illumos-gate/usr/src/lib/libnvme/common/
H A Dlibnvme.c477 nvme_ctrl_discover_fini(nvme_ctrl_iter_t *iter) in nvme_ctrl_discover_fini() argument
479 free(iter); in nvme_ctrl_discover_fini()
483 nvme_ctrl_discover_step(nvme_ctrl_iter_t *iter, const nvme_ctrl_disc_t **discp) in nvme_ctrl_discover_step() argument
488 if (iter->ni_done) { in nvme_ctrl_discover_step()
493 if (iter->ni_cur == NULL) { in nvme_ctrl_discover_step()
494 iter->ni_cur = di_drv_first_node("nvme", in nvme_ctrl_discover_step()
495 iter->ni_nvme->nh_devinfo); in nvme_ctrl_discover_step()
497 iter->ni_cur = di_drv_next_node(iter->ni_cur); in nvme_ctrl_discover_step()
500 if (iter->ni_cur == NULL) { in nvme_ctrl_discover_step()
501 iter->ni_done = true; in nvme_ctrl_discover_step()
[all …]
H A Dlibnvme_log.c202 nvme_log_discover_fini(nvme_log_iter_t *iter) in nvme_log_discover_fini() argument
204 free(iter); in nvme_log_discover_fini()
208 nvme_log_discover_one(nvme_log_iter_t *iter, const nvme_log_page_info_t *info) in nvme_log_discover_one() argument
211 nvme_log_disc_t *disc = &iter->nli_nld; in nvme_log_discover_one()
215 data.vcd_vers = &iter->nli_ctrl->nc_vers; in nvme_log_discover_one()
216 data.vcd_id = &iter->nli_ctrl->nc_info; in nvme_log_discover_one()
223 if ((iter->nli_scope & scope) == 0) { in nvme_log_discover_one()
263 nvme_log_discover_step(nvme_log_iter_t *iter, const nvme_log_disc_t **outp) in nvme_log_discover_step() argument
266 nvme_ctrl_t *ctrl = iter->nli_ctrl; in nvme_log_discover_step()
268 if (iter->nli_std_done && iter->nli_vs_done) { in nvme_log_discover_step()
[all …]
H A Dlibnvme_vuc.c106 nvme_vuc_discover_fini(nvme_vuc_iter_t *iter) in nvme_vuc_discover_fini() argument
108 free(iter); in nvme_vuc_discover_fini()
112 nvme_vuc_discover_step(nvme_vuc_iter_t *iter, const nvme_vuc_disc_t **outp) in nvme_vuc_discover_step() argument
114 nvme_ctrl_t *ctrl = iter->nvi_ctrl; in nvme_vuc_discover_step()
120 if (iter->nvi_cur_idx >= ctrl->nc_vsd->nvd_nvuc) { in nvme_vuc_discover_step()
124 *outp = &ctrl->nc_vsd->nvd_vuc[iter->nvi_cur_idx]; in nvme_vuc_discover_step()
125 iter->nvi_cur_idx++; in nvme_vuc_discover_step()
133 nvme_vuc_iter_t *iter; in nvme_vuc_discover_init() local
146 iter = calloc(1, sizeof (nvme_vuc_iter_t)); in nvme_vuc_discover_init()
147 if (iter == NULL) { in nvme_vuc_discover_init()
[all …]
H A Dlibnvme_feature.c178 nvme_feat_discover_fini(nvme_feat_iter_t *iter) in nvme_feat_discover_fini() argument
180 free(iter); in nvme_feat_discover_fini()
184 nvme_feat_discover_one(nvme_feat_iter_t *iter, const nvme_feat_info_t *info) in nvme_feat_discover_one() argument
186 nvme_feat_disc_t *disc = &iter->nfi_disc; in nvme_feat_discover_one()
189 data.vcd_vers = &iter->nfi_ctrl->nc_vers; in nvme_feat_discover_one()
190 data.vcd_id = &iter->nfi_ctrl->nc_info; in nvme_feat_discover_one()
195 if ((iter->nfi_scope & info->nfeat_scope) == 0) { in nvme_feat_discover_one()
219 nvme_feat_discover_step(nvme_feat_iter_t *iter, const nvme_feat_disc_t **outp) in nvme_feat_discover_step() argument
223 if (iter->nfi_cur_idx == nvme_std_nfeats) { in nvme_feat_discover_step()
227 while (iter->nfi_cur_idx < nvme_std_nfeats) { in nvme_feat_discover_step()
[all …]
/illumos-gate/usr/src/cmd/ktest/
H A Dktest.c562 ktest_iter_t *iter = malloc(sizeof (ktest_iter_t)); in ktest_iter() local
564 if (iter == NULL) { in ktest_iter()
568 iter->ki_modules = tests; in ktest_iter()
569 iter->ki_module = nvlist_next_nvpair(tests, NULL); in ktest_iter()
571 iter->ki_suites = NULL; in ktest_iter()
572 iter->ki_suite = NULL; in ktest_iter()
574 iter->ki_tests = NULL; in ktest_iter()
575 iter->ki_test = NULL; in ktest_iter()
577 ktest_test_desc_init(&iter->ki_desc); in ktest_iter()
579 iter->ki_triples = triples; in ktest_iter()
[all …]
/illumos-gate/usr/src/cmd/svc/svcadm/
H A Dsynch.c145 scf_iter_t *iter; in prop_walk_init() local
148 if ((iter = scf_iter_create(h)) == NULL || in prop_walk_init()
162 if (scf_iter_property_values(iter, prop) != 0) { in prop_walk_init()
169 return (iter); in prop_walk_init()
172 scf_iter_destroy(iter); in prop_walk_init()
183 prop_walk_step(scf_iter_t *iter, char *fmri, size_t len) in prop_walk_step() argument
191 r = scf_iter_next_value(iter, val); in prop_walk_step()
300 scf_iter_t *iter; in fmri_has_potential() local
313 (iter = scf_iter_create(h)) == NULL) in fmri_has_potential()
334 if (scf_iter_service_instances(iter, svc) != 0) { in fmri_has_potential()
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.freopen.ksh43 /++i == $iter/
60 while [ "$i" -lt "$iter" ]; do
75 iter=20
82 if [ -f $tmpfile.$iter ]; then
83 echo "$0: did not expect to find file: $tmpfile.$iter"
88 mv $tmpfile $tmpfile.$iter
89 let iter=iter+1
91 while [ "$i" -lt "$iter" ]; do
/illumos-gate/usr/src/lib/hal/libhal/common/
H A Dlibhal.c101 static char **libhal_get_string_array_from_iter (DBusMessageIter *iter, int *num_elements);
138 libhal_get_string_array_from_iter (DBusMessageIter *iter, int *num_elements) in libhal_get_string_array_from_iter() argument
151 while (dbus_message_iter_get_arg_type (iter) == DBUS_TYPE_STRING) { in libhal_get_string_array_from_iter()
163 dbus_message_iter_get_basic (iter, &value); in libhal_get_string_array_from_iter()
170 dbus_message_iter_next(iter); in libhal_get_string_array_from_iter()
791 libhal_psi_init (LibHalPropertySetIterator * iter, LibHalPropertySet * set) in libhal_psi_init() argument
796 iter->set = set; in libhal_psi_init()
797 iter->idx = 0; in libhal_psi_init()
798 iter->cur_prop = set->properties_head; in libhal_psi_init()
811 libhal_psi_has_more (LibHalPropertySetIterator * iter) in libhal_psi_has_more() argument
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dprinthash_live.c25 ipflookupiter_t iter; local
39 obj.ipfo_ptr = &iter;
40 obj.ipfo_size = sizeof(iter);
42 iter.ili_data = &entry;
43 iter.ili_type = IPLT_HASH;
44 iter.ili_otype = IPFLOOKUPITER_NODE;
45 iter.ili_ival = IPFGENITER_LOOKUP;
46 iter.ili_unit = hp->iph_unit;
47 strncpy(iter.ili_name, hp->iph_name, FR_GROUPLEN);
H A Dprintpool_live.c25 ipflookupiter_t iter; local
39 obj.ipfo_ptr = &iter;
40 obj.ipfo_size = sizeof(iter);
42 iter.ili_data = &entry;
43 iter.ili_type = IPLT_POOL;
44 iter.ili_otype = IPFLOOKUPITER_NODE;
45 iter.ili_ival = IPFGENITER_LOOKUP;
46 iter.ili_unit = pool->ipo_unit;
47 strncpy(iter.ili_name, pool->ipo_name, FR_GROUPLEN);
/illumos-gate/usr/src/cmd/svc/configd/
H A Dclient.c548 repcache_iter_t *iter; in iter_alloc() local
549 iter = uu_zalloc(sizeof (repcache_iter_t)); in iter_alloc()
550 if (iter != NULL) in iter_alloc()
551 uu_avl_node_init(iter, &iter->ri_link, iter_pool); in iter_alloc()
552 return (iter); in iter_alloc()
556 iter_add(repcache_client_t *cp, repcache_iter_t *iter) in iter_add() argument
563 (void) uu_avl_find(cp->rc_iters, iter, NULL, &idx); in iter_add()
564 uu_avl_insert(cp->rc_iters, iter, idx); in iter_add()
572 repcache_iter_t *iter; in iter_find() local
576 iter = uu_avl_find(cp->rc_iters, &id, NULL, NULL); in iter_find()
[all …]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipnat.c424 ipfgeniter_t iter; in dostats_live() local
432 obj.ipfo_size = sizeof (iter); in dostats_live()
433 obj.ipfo_ptr = &iter; in dostats_live()
435 iter.igi_type = IPFGENITER_IPNAT; in dostats_live()
436 iter.igi_nitems = 1; in dostats_live()
437 iter.igi_data = &ipn; in dostats_live()
454 iter.igi_type = IPFGENITER_NAT; in dostats_live()
455 iter.igi_nitems = 1; in dostats_live()
456 iter.igi_data = &nat; in dostats_live()
478 ipfgeniter_t iter; in showhostmap_live() local
[all …]
/illumos-gate/usr/src/uts/common/sys/ib/clients/rdsv3/
H A Dinfo.h33 struct rdsv3_info_iterator *iter,
36 #define rdsv3_info_copy(iter, data, bytes) \ argument
37 (void) ddi_copyout(data, iter->addr + iter->offset, bytes, 0); \
38 iter->offset += bytes
/illumos-gate/usr/src/cmd/raidz_test/
H A Draidz_bench.c76 uint64_t ds, iter_cnt, iter, disksize; in run_gen_bench_impl() local
95 for (iter = 0; iter < iter_cnt; iter++) in run_gen_bench_impl()
139 uint64_t ds, iter_cnt, iter, disksize; in run_rec_bench_impl() local
179 for (iter = 0; iter < iter_cnt; iter++) in run_rec_bench_impl()
/illumos-gate/usr/src/lib/libidmap/common/
H A Didmap_api.c544 idmap_iter_set_limit(idmap_iter_t *iter, uint64_t limit) in idmap_iter_set_limit() argument
546 if (iter == NULL) { in idmap_iter_set_limit()
550 iter->limit = limit; in idmap_iter_set_limit()
570 idmap_iter_t **iter) in idmap_iter_namerules() argument
597 *iter = tmpiter; in idmap_iter_namerules()
631 idmap_iter_next_namerule(idmap_iter_t *iter, char **windomain, in idmap_iter_next_namerule() argument
643 __ITER_CHECK(iter, IDMAP_LIST_NAMERULES); in idmap_iter_next_namerule()
645 namerules = (idmap_namerules_res *)iter->retlist; in idmap_iter_next_namerule()
646 if (iter->retcode == IDMAP_NEXT && (namerules == NULL || in idmap_iter_next_namerule()
647 iter->next >= namerules->rules.rules_len)) { in idmap_iter_next_namerule()
[all …]

123456