Home
last modified time | relevance | path

Searched refs:curr (Results 1 – 25 of 107) sorted by relevance

12345

/illumos-gate/usr/src/lib/libsocket/inet/
H A Dgetifaddrs.c53 struct ifaddrs *curr; in getifaddrs() local
62 for (curr = *ifap; curr != NULL; curr = curr->ifa_next) { in getifaddrs()
73 struct ifaddrs *curr; in freeifaddrs() local
76 curr = ifa; in freeifaddrs()
78 free(curr->ifa_name); in freeifaddrs()
79 free(curr->ifa_addr); in freeifaddrs()
80 free(curr->ifa_netmask); in freeifaddrs()
82 free(curr); in freeifaddrs()
156 if (curr == NULL) in getallifaddrs()
163 *ifap = curr; in getallifaddrs()
[all …]
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dpopen.c95 node_t *curr; in popen() local
148 for (curr = head; curr != NULL && error == 0; curr = curr->next) { in popen()
158 curr->fd); in popen()
260 node_t *curr; in _insert_nolock() local
262 for (prev = curr = head; curr != NULL; curr = curr->next) { in _insert_nolock()
272 curr->pid = pid; in _insert_nolock()
276 prev = curr; in _insert_nolock()
312 node_t *curr; in _delete() local
317 for (prev = curr = head; curr != NULL; curr = curr->next) { in _delete()
324 pid = curr->pid; in _delete()
[all …]
/illumos-gate/usr/src/lib/libnvpair/
H A Dnvpair_json.c120 nvpair_t *curr; in nvlist_print_json() local
125 for (curr = nvlist_next_nvpair(nvl, NULL); curr; in nvlist_print_json()
126 curr = nvlist_next_nvpair(nvl, curr)) { in nvlist_print_json()
127 data_type_t type = nvpair_type(curr); in nvlist_print_json()
140 char *string = fnvpair_value_string(curr); in nvlist_print_json()
158 FPRINTF(fp, "%hhu", fnvpair_value_byte(curr)); in nvlist_print_json()
183 FPRINTF(fp, "%d", fnvpair_value_int32(curr)); in nvlist_print_json()
194 (long long)fnvpair_value_int64(curr)); in nvlist_print_json()
206 VERIFY0(nvpair_value_hrtime(curr, &val)); in nvlist_print_json()
213 VERIFY0(nvpair_value_double(curr, &val)); in nvlist_print_json()
[all …]
/illumos-gate/usr/src/cmd/smbsrv/smbstat/
H A Dsmbstat.c658 smbstat_cpu_snapshot_t *curr; in smbstat_cpu_snapshot() local
668 if (curr->cs_state == -1) in smbstat_cpu_snapshot()
671 curr->cs_id = i; in smbstat_cpu_snapshot()
748 smbstat_wrk_snapshot_t *curr; in smbstat_wrk_snapshot() local
776 smbstat_wrk_snapshot_t *curr; in smbstat_wrk_process() local
780 if (curr->ws_bnalloc >= curr->ws_maxthreads) in smbstat_wrk_process()
824 smbstat_srv_snapshot_t *curr; in smbstat_srv_snapshot() local
834 bcopy(smbstat_srv_ksp->ks_data, &curr->ss_data, sizeof (curr->ss_data)); in smbstat_srv_snapshot()
853 curr->ss_snaptime); in smbstat_srv_process()
894 smbstat_srv_snapshot_t *curr, in smbstat_srv_process_throughput() argument
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dddi_hp_impl.h114 type *curr, *prev = NULL; \
116 for (curr = (head); curr; prev = curr, curr = curr->next); \
126 type *curr, *prev = NULL; \
127 for (curr = (head); curr; prev = curr, curr = curr->next) { \
128 if (curr == (node)) \
131 if (curr) { \
135 prev->next = curr->next; \
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_agents.c184 tavor_agent_list_t *curr; in tavor_agent_request_cb() local
192 state = curr->agl_state; in tavor_agent_request_cb()
250 tavor_agent_list_t *curr; in tavor_agent_handle_req() local
267 state = curr->agl_state; in tavor_agent_handle_req()
268 port = curr->agl_port; in tavor_agent_handle_req()
411 tavor_agent_list_t *curr; in tavor_agent_list_init() local
474 curr->agl_state = state; in tavor_agent_list_init()
475 curr->agl_port = j + 1; in tavor_agent_list_init()
522 tavor_agent_list_t *curr; in tavor_agent_register_all() local
544 curr = &state->ts_agents[i]; in tavor_agent_register_all()
[all …]
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/
H A DDoPrinterMod.java94 Printer curr = new Printer(ns); in modify() local
95 curr.setPrinterName(p.getPrinterName()); in modify()
97 DoPrinterView.view(curr, ns); in modify()
100 String err = curr.getErrorLog(); in modify()
107 modifyLocal(p, curr, ns); in modify()
109 modifyRemote(p, curr, ns); in modify()
119 Printer curr, in modifyLocal() argument
392 device = curr.getDestination(); in modifyLocal()
425 if (curr.getPPD() != null) in modifyLocal()
618 Printer curr, in modifyRemote() argument
[all …]
H A DDoPrinterDelete.java86 Printer curr = new Printer(); in delete() local
87 curr.setPrinterName(printername); in delete()
89 DoPrinterView.view(curr, ns); in delete()
93 curr.setAccept(false); in delete()
96 if (curr.getAccept()) { in delete()
107 curr = null; in delete()
/illumos-gate/usr/src/lib/libnisdb/
H A Ddb_index_entry.cc191 db_index_entry_p fst, prev, curr; in lookup() local
206 for (curr = fst->next; curr != NULL; curr = curr->next) { in lookup()
207 if ((curr->hashval == hval) && in lookup()
208 (curr->key->equal(i, casein))) { in lookup()
209 prev->addresult(curr); in lookup()
210 prev = curr; in lookup()
282 db_index_entry_p curr, prev, rp, save; in add() local
285 for (prev = curr = this; curr != NULL; curr = curr->next) { in add()
286 if (curr->hashval == hval && curr->key->equal(i, casein)) { in add()
289 prev = curr; in add()
[all …]
/illumos-gate/usr/src/boot/lib/libstand/
H A Denvironment.c67 struct env_var *ev, *curr, *last; in env_setenv() local
99 for (last = NULL, curr = environ; curr != NULL; in env_setenv()
100 last = curr, curr = curr->ev_next) { in env_setenv()
102 if (strcmp(ev->ev_name, curr->ev_name) < 0) { in env_setenv()
103 if (curr->ev_prev) { in env_setenv()
104 curr->ev_prev->ev_next = ev; in env_setenv()
108 ev->ev_next = curr; in env_setenv()
109 ev->ev_prev = curr->ev_prev; in env_setenv()
110 curr->ev_prev = ev; in env_setenv()
114 if (curr == NULL) { in env_setenv()
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_agents.c164 hermon_agent_list_t *curr; in hermon_agent_request_cb() local
169 state = curr->agl_state; in hermon_agent_request_cb()
314 hermon_agent_list_t *curr; in hermon_agent_handle_req() local
337 state = curr->agl_state; in hermon_agent_handle_req()
338 port = curr->agl_port; in hermon_agent_handle_req()
587 hermon_agent_list_t *curr; in hermon_agent_list_init() local
645 curr->agl_state = state; in hermon_agent_list_init()
646 curr->agl_port = j + 1; in hermon_agent_list_init()
688 hermon_agent_list_t *curr; in hermon_agent_register_all() local
712 curr = &state->hs_agents[i]; in hermon_agent_register_all()
[all …]
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdlstat.c693 curr = curr->dc_next; in i_dlstat_join_lists()
1512 for (curr = rx_lane_head; curr != NULL; curr = curr->dc_next) { in dlstat_rx_lane_total_stats()
1556 for (curr = tx_lane_head; curr != NULL; curr = curr->dc_next) { in dlstat_tx_lane_total_stats()
1676 for (curr = curr_head; curr != NULL; curr = curr->dc_next) { in i_dlstat_query_fanout_stats()
1949 for (curr = rx_ring_head; curr != NULL; curr = curr->dc_next) { in dlstat_rx_ring_total_stats()
1992 for (curr = tx_ring_head; curr != NULL; curr = curr->dc_next) { in dlstat_tx_ring_total_stats()
2114 for (curr = head; curr != NULL; curr = curr->dc_next) { in dlstat_aggr_total_stats()
2364 curr = curr->dc_next; in dladm_link_stat_free()
2442 for (curr = stat_head; curr != NULL; curr = curr->dc_next) { in i_walk_dlstat_chain()
2508 curr = curr->dc_next; in dladm_link_stat_query_all_free()
[all …]
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dsched.c320 (curr == NULL || t <= curr->time)) { in el_add()
418 if (curr == NULL || curr->time > t) { in el_add()
419 curr = x; in el_add()
478 n = curr; in el_remove()
534 curr = n2; in el_remove()
573 curr->pred->sucd = curr->sucd; in el_first()
574 curr->sucd->pred = curr->pred; in el_first()
577 n = curr; in el_first()
592 n = curr->sucd; in el_first()
601 free(curr); in el_first()
[all …]
/illumos-gate/usr/src/contrib/zlib/
H A Dinftrees.c40 unsigned curr; /* number of index bits for current table */ in inflate_table() local
198 curr = root; /* current table index bits */ in inflate_table()
228 fill = 1U << curr; in inflate_table()
263 curr = len - drop; in inflate_table()
264 left = (int)(1 << curr); in inflate_table()
265 while (curr + drop < max) { in inflate_table()
266 left -= count[curr + drop]; in inflate_table()
268 curr++; in inflate_table()
273 used += 1U << curr; in inflate_table()
280 (*table)[low].op = (unsigned char)curr; in inflate_table()
/illumos-gate/usr/src/uts/sun4u/opl/io/pcicmu/
H A Dpcmu_ib.c179 prev = curr; in pcmu_ib_intr_disable()
180 curr = gethrtime(); in pcmu_ib_intr_disable()
181 interval = curr - prev; in pcmu_ib_intr_disable()
265 prev = curr; in pcmu_ib_intr_dist()
266 curr = gethrtime(); in pcmu_ib_intr_dist()
267 interval = curr - prev; in pcmu_ib_intr_dist()
533 prev = curr; in pcmu_ib_ino_add_intr()
534 curr = gethrtime(); in pcmu_ib_ino_add_intr()
535 interval = curr - prev; in pcmu_ib_ino_add_intr()
621 prev = curr; in pcmu_ib_ino_rem_intr()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dddi_hp_ndi.c278 ddi_hp_cn_handle_t *head, *curr, *prev; in ndi_hp_walk_cn() local
294 curr = head; in ndi_hp_walk_cn()
296 while (curr != NULL) { in ndi_hp_walk_cn()
299 (void *)dip, curr->cn_info.cn_name)); in ndi_hp_walk_cn()
300 switch ((*f)(&(curr->cn_info), arg)) { in ndi_hp_walk_cn()
313 curr = head; in ndi_hp_walk_cn()
315 } else if (prev && prev->next != curr) { in ndi_hp_walk_cn()
321 curr = prev->next; in ndi_hp_walk_cn()
324 prev = curr; in ndi_hp_walk_cn()
325 curr = curr->next; in ndi_hp_walk_cn()
H A Dmem_cage.c215 pfn_t curr; member
297 *pfncur = lp->curr; in kcage_current_pfn()
341 klo = lp->curr; in kcage_next_range()
345 khi = lp->curr; in kcage_next_range()
440 new->curr = new->lim; in kcage_range_add_internal()
653 new->curr = base; in kcage_glist_delete()
675 lp->curr = base; in kcage_glist_delete()
682 lp->curr = lim; in kcage_glist_delete()
713 pfn = --lp->curr; in kcage_get_pfn()
718 pfn = lp->curr++; in kcage_get_pfn()
[all …]
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dfiles.c262 static long curr; in _alloc_req_id() local
294 curr = start; in _alloc_req_id()
302 if (curr < start || curr > end) in _alloc_req_id()
303 curr = start; in _alloc_req_id()
309 wrap = curr; in _alloc_req_id()
311 ret = curr; in _alloc_req_id()
312 if ((curr += incr) > end) in _alloc_req_id()
313 curr = start; in _alloc_req_id()
315 } while ( wrap != curr && ((RSTATUS *)request_by_id_num(ret)) ) ; in _alloc_req_id()
319 len = sprintf(buf, fmt, curr); in _alloc_req_id()
[all …]
/illumos-gate/usr/src/common/nvpair/
H A Dnvpair.c669 curr->nvi_prev->nvi_next = curr->nvi_next; in nvp_buf_unlink()
674 curr->nvi_next->nvi_prev = curr->nvi_prev; in nvp_buf_unlink()
808 for (curr = priv->nvp_list; curr != NULL; curr = curr->nvi_next) { in nvlist_copy_pairs()
863 curr = curr->nvi_next; in nvlist_free()
887 for (curr = priv->nvp_list; curr != NULL; curr = curr->nvi_next) in nvlist_contains_nvp()
1450 curr = curr->nvi_next; in nvlist_next_nvpair()
1456 return (curr != NULL ? &curr->nvi_nvp : NULL); in nvlist_next_nvpair()
1474 curr = curr->nvi_prev; in nvlist_prev_nvpair()
2075 for (curr = priv->nvp_list; curr != NULL; curr = curr->nvi_next) { in nvlist_exists()
2335 for (curr = priv->nvp_list; curr != NULL; curr = curr->nvi_next) in nvs_encode_pairs()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsref/
H A Dnfsref.c194 nvpair_t *curr; in delref() local
227 curr = nvlist_next_nvpair(nvl, NULL); in delref()
228 if (curr != NULL) { in delref()
263 nvpair_t *curr; in lookup() local
284 curr = NULL; in lookup()
285 while ((curr = nvlist_next_nvpair(nvl, curr)) != NULL) { in lookup()
286 type = nvpair_name(curr); in lookup()
292 if (curr == NULL) { in lookup()
298 nvpair_value_string(curr, &svc_data); in lookup()
/illumos-gate/usr/src/uts/intel/io/pci/
H A Dpci_boot.c2553 curr += strlen(curr) + 1; in add_compatible()
2558 curr += strlen(curr) + 1; in add_compatible()
2563 curr += strlen(curr) + 1; in add_compatible()
2569 curr += strlen(curr) + 1; in add_compatible()
2577 curr += strlen(curr) + 1; in add_compatible()
2583 curr += strlen(curr) + 1; in add_compatible()
2603 curr += strlen(curr) + 1; in add_compatible()
2608 curr += strlen(curr) + 1; in add_compatible()
2613 curr += strlen(curr) + 1; in add_compatible()
2618 curr += strlen(curr) + 1; in add_compatible()
[all …]
/illumos-gate/usr/src/uts/common/io/myri10ge/drv/
H A Dmyri10ge_lro.c138 struct lro_entry *lro, *curr; in myri10ge_lro_rx() local
232 curr = ss->lro_active; in myri10ge_lro_rx()
233 while (curr->next != lro) in myri10ge_lro_rx()
234 curr = curr->next; in myri10ge_lro_rx()
235 curr->next = lro->next; in myri10ge_lro_rx()
299 curr = ss->lro_active; in myri10ge_lro_rx()
300 while (curr->next != lro) in myri10ge_lro_rx()
301 curr = curr->next; in myri10ge_lro_rx()
302 curr->next = lro->next; in myri10ge_lro_rx()
/illumos-gate/usr/src/cmd/sysdef/
H A Dsysdef.c536 char *curr, *next; in modules() local
561 curr = modpath; in modules()
562 while (curr) { in modules()
564 curr = strchr(curr + 1, ' '); in modules()
578 curr = modpath; in modules()
586 if (next = strchr(curr, ' ')) { in modules()
594 curr = next ? next + 1 : NULL; in modules()
604 dirs[i] = curr; in modules()
610 curr = next ? next + 1 : NULL; in modules()
616 curr_len = strlen(curr); in modules()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dmemcluster.c245 char *curr, *next; in __memget_record() local
255 curr = new; in __memget_record()
256 next = curr + mem_target; in __memget_record()
259 curr = next; in __memget_record()
266 ((memcluster_element *)curr)->next = NULL; in __memget_record()
288 curr = new; in __memget_record()
289 next = curr + new_size; in __memget_record()
292 memset(curr, 0xa5, new_size); in __memget_record()
294 ((memcluster_element *)curr)->next = next; in __memget_record()
295 curr = next; in __memget_record()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Ddr_util.c206 char *curr; in dr_dbg_dump_msg() local
220 curr = line; in dr_dbg_dump_msg()
231 (void) sprintf(curr, " %02x", msg[i + j]); in dr_dbg_dump_msg()
233 curr += 3; in dr_dbg_dump_msg()
243 while (curr != (line + ASCIIOFFSET)) in dr_dbg_dump_msg()
244 *curr++ = ' '; in dr_dbg_dump_msg()

12345