/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_case.c | 222 fmd_case_code_hash_insert(fmd_case_hash_t *chp, fmd_case_impl_t *cip) in fmd_case_code_hash_insert() argument 224 uint_t h = fmd_strhash(cip->ci_code) % chp->ch_hashlen; in fmd_case_code_hash_insert() 226 cip->ci_code_next = chp->ch_code_hash[h]; in fmd_case_code_hash_insert() 227 chp->ch_code_hash[h] = cip; in fmd_case_code_hash_insert() 231 fmd_case_code_hash_delete(fmd_case_hash_t *chp, fmd_case_impl_t *cip) in fmd_case_code_hash_delete() argument 235 if (cip->ci_code) { in fmd_case_code_hash_delete() 236 uint_t h = fmd_strhash(cip->ci_code) % chp->ch_hashlen; in fmd_case_code_hash_delete() 240 if (cp != cip) in fmd_case_code_hash_delete() 260 fmd_case_impl_t *cip = (fmd_case_impl_t *)cp; in fmd_case_mkcode() local 267 ASSERT(MUTEX_HELD(&cip->ci_lock)); in fmd_case_mkcode() [all …]
|
H A D | fmd_ckpt.c | 584 fmd_case_impl_t *cip = (fmd_case_impl_t *)cp; in fmd_ckpt_resv_case() local 588 if (cip->ci_xprt != NULL) in fmd_ckpt_resv_case() 591 n = fmd_buf_hash_count(&cip->ci_bufs); in fmd_ckpt_resv_case() 592 fmd_buf_hash_apply(&cip->ci_bufs, (fmd_buf_f *)fmd_ckpt_resv_buf, ckp); in fmd_ckpt_resv_case() 595 if (cip->ci_principal != NULL) in fmd_ckpt_resv_case() 599 sizeof (fcf_event_t) * cip->ci_nitems, sizeof (uint64_t)); in fmd_ckpt_resv_case() 601 if (cip->ci_nsuspects != 0) in fmd_ckpt_resv_case() 604 cip->ci_nvsz = 0; /* compute size of packed suspect nvlist array */ in fmd_ckpt_resv_case() 606 for (cis = cip->ci_suspects; cis != NULL; cis = cis->cis_next) { in fmd_ckpt_resv_case() 610 cip->ci_nvsz += sizeof (fcf_nvl_t) + nvsize; in fmd_ckpt_resv_case() [all …]
|
H A D | fmd_xprt.c | 523 fmd_case_impl_t *cip = (fmd_case_impl_t *)cp; in fmd_xprt_send_case() local 530 if (cip->ci_state != FMD_CASE_SOLVED) in fmd_xprt_send_case() 538 FM_LIST_SUSPECT_CLASS, cip->ci_uuid, xip->xi_id); in fmd_xprt_send_case() 551 fmd_case_impl_t *cip = (fmd_case_impl_t *)cp; in fmd_xprt_send_case_ro() local 558 if (cip->ci_state != FMD_CASE_SOLVED) in fmd_xprt_send_case_ro() 566 FM_LIST_SUSPECT_CLASS, cip->ci_uuid, mp->mod_name); in fmd_xprt_send_case_ro() 681 fmd_case_impl_t *cip = (fmd_case_impl_t *)cp; in fmd_xprt_event_uuresolved() local 683 fmd_case_transition(cp, (cip->ci_state == FMD_CASE_REPAIRED) ? in fmd_xprt_event_uuresolved() 684 FMD_CASE_RESOLVED : (cip->ci_state == FMD_CASE_CLOSED) ? in fmd_xprt_event_uuresolved() 929 fmd_case_impl_t *cip, *nip; in fmd_xprt_destroy() local [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/ |
H A D | ibmf_ud_dest.c | 39 static void ibmf_i_populate_ud_dest_list(ibmf_ci_t *cip, int kmflag); 50 ibmf_i_init_ud_dest(ibmf_ci_t *cip) in ibmf_i_init_ud_dest() argument 54 tnf_opaque, cip, cip); in ibmf_i_init_ud_dest() 57 mutex_init(&cip->ci_ud_dest_list_mutex, NULL, MUTEX_DRIVER, NULL); in ibmf_i_init_ud_dest() 60 ibmf_i_pop_ud_dest_thread(cip); in ibmf_i_init_ud_dest() 71 ibmf_i_fini_ud_dest(ibmf_ci_t *cip) in ibmf_i_fini_ud_dest() argument 75 tnf_opaque, cip, cip); in ibmf_i_fini_ud_dest() 78 ibmf_i_clean_ud_dest_list(cip, B_TRUE); in ibmf_i_fini_ud_dest() 89 ibmf_i_get_ud_dest(ibmf_ci_t *cip) in ibmf_i_get_ud_dest() argument 95 tnf_opaque, cip, cip); in ibmf_i_get_ud_dest() [all …]
|
H A D | ibmf_handlers.c | 38 static void ibmf_i_process_completion(ibmf_ci_t *cip, ibt_wc_t *wcp); 52 ibmf_ci_t *cip; in ibmf_ibt_async_handler() local 73 cip = ibmf_statep->ibmf_ci_list; in ibmf_ibt_async_handler() 75 while (cip != NULL) { in ibmf_ibt_async_handler() 76 mutex_enter(&cip->ci_mutex); in ibmf_ibt_async_handler() 78 if (cip->ci_node_guid == event->ev_hca_guid) { in ibmf_ibt_async_handler() 80 mutex_exit(&cip->ci_mutex); in ibmf_ibt_async_handler() 84 mutex_exit(&cip->ci_mutex); in ibmf_ibt_async_handler() 85 cip = cip->ci_next; in ibmf_ibt_async_handler() 88 if (cip != NULL) { in ibmf_ibt_async_handler() [all …]
|
H A D | ibmf_impl.c | 140 ibmf_ci_t *cip); 141 static void ibmf_i_uninit_ci(ibmf_ci_t *cip); 142 static void ibmf_i_init_ci_done(ibmf_ci_t *cip); 143 static void ibmf_i_uninit_ci_done(ibmf_ci_t *cip); 146 static int ibmf_i_init_cqs(ibmf_ci_t *cip); 147 static void ibmf_i_fini_cqs(ibmf_ci_t *cip); 210 ibmf_ci_t *cip; in ibmf_fini() local 222 cip = ibmf_statep->ibmf_ci_list; in ibmf_fini() 224 while (cip != (ibmf_ci_t *)NULL) { in ibmf_fini() 226 mutex_enter(&cip->ci_mutex); in ibmf_fini() [all …]
|
H A D | ibmf_wqe.c | 63 static int ibmf_i_extend_wqe_mem(ibmf_ci_t *cip, 76 ibmf_ci_t *cip = (ibmf_ci_t *)cdrarg; in ibmf_send_wqe_cache_constructor() local 88 (ib_vaddr_t)(uintptr_t)vmem_alloc(cip->ci_wqe_ib_vmem, in ibmf_send_wqe_cache_constructor() 101 mutex_enter(&cip->ci_wqe_mutex); in ibmf_send_wqe_cache_constructor() 102 wqe_mgt = cip->ci_wqe_mgt_list; in ibmf_send_wqe_cache_constructor() 118 mutex_exit(&cip->ci_wqe_mutex); in ibmf_send_wqe_cache_constructor() 119 vmem_free(cip->ci_wqe_ib_vmem, in ibmf_send_wqe_cache_constructor() 142 mutex_exit(&cip->ci_wqe_mutex); in ibmf_send_wqe_cache_constructor() 160 ibmf_ci_t *cip = (ibmf_ci_t *)cdrarg; in ibmf_send_wqe_cache_destructor() local 170 vmem_free(cip->ci_wqe_ib_vmem, in ibmf_send_wqe_cache_destructor() [all …]
|
H A D | ibmf_send.c | 254 ibmf_i_handle_send_completion(ibmf_ci_t *cip, ibt_wc_t *wcp) in ibmf_i_handle_send_completion() argument 265 tnf_opaque, cip, cip, tnf_opaque, wcp, wcp); in ibmf_i_handle_send_completion() 295 (void) ibt_deregister_mr(cip->ci_ci_handle, in ibmf_i_handle_send_completion() 301 ibmf_i_put_ud_dest(cip, msgimplp->im_ibmf_ud_dest); in ibmf_i_handle_send_completion() 302 ibmf_i_clean_ud_dest_list(cip, B_FALSE); in ibmf_i_handle_send_completion() 394 ibmf_ci_t *cip; in ibmf_i_do_send_cb() local 416 cip = clientp->ic_myci; in ibmf_i_do_send_cb() 424 kmem_cachep = cip->ci_send_wqes_cache; in ibmf_i_do_send_cb() 440 mutex_enter(&cip->ci_mutex); in ibmf_i_do_send_cb() 441 IBMF_SUB32_PORT_KSTATS(cip, send_wqes_alloced, 1); in ibmf_i_do_send_cb() [all …]
|
H A D | ibmf_recv.c | 56 ibmf_ci_t *cip; member 67 static int ibmf_i_repost_recv_buffer(ibmf_ci_t *cip, 96 ibmf_i_handle_recv_completion(ibmf_ci_t *cip, ibt_wc_t *wcp) in ibmf_i_handle_recv_completion() argument 111 tnf_opaque, cip, cip, tnf_opaque, wcp, wcp); in ibmf_i_handle_recv_completion() 113 mutex_enter(&cip->ci_ud_dest_list_mutex); in ibmf_i_handle_recv_completion() 114 if (cip->ci_ud_dest_list_count < IBMF_UD_DEST_LO_WATER_MARK) { in ibmf_i_handle_recv_completion() 115 ret = ibmf_ud_dest_tq_disp(cip); in ibmf_i_handle_recv_completion() 124 mutex_exit(&cip->ci_ud_dest_list_mutex); in ibmf_i_handle_recv_completion() 136 kmem_cachep = cip->ci_recv_wqes_cache; in ibmf_i_handle_recv_completion() 150 mutex_enter(&cip->ci_mutex); in ibmf_i_handle_recv_completion() [all …]
|
/illumos-gate/usr/src/uts/common/io/net80211/ |
H A D | net80211_crypto.c | 130 const struct ieee80211_cipher *cip; in ieee80211_crypto_newkey() local 143 cip = ic->ic_ciphers[cipher]; in ieee80211_crypto_newkey() 145 if (cip == NULL) { in ieee80211_crypto_newkey() 162 cip->ic_name); in ieee80211_crypto_newkey() 183 if (key->wk_cipher != cip || key->wk_flags != flags) { in ieee80211_crypto_newkey() 192 keyctx = cip->ic_attach(ic, key); in ieee80211_crypto_newkey() 195 "unable to attach cipher %s\n", cip->ic_name); in ieee80211_crypto_newkey() 200 key->wk_cipher = cip; in ieee80211_crypto_newkey() 230 "falling back to s/w\n", cip->ic_name); in ieee80211_crypto_newkey() 238 "unable to setup cipher %s\n", cip->ic_name); in ieee80211_crypto_newkey() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | config.c | 324 struct configinfo *cip; in set_protocol_defaults() local 328 for (cip = iflist; cip->ci_name != NULL; cip++) { in set_protocol_defaults() 329 ifdefaults[cip->ci_index].cf_value = cip->ci_default; in set_protocol_defaults() 330 ifdefaults[cip->ci_index].cf_notdefault = _B_FALSE; in set_protocol_defaults() 332 for (cip = prefixlist; cip->ci_name != NULL; cip++) { in set_protocol_defaults() 333 prefixdefaults[cip->ci_index].cf_value = cip->ci_default; in set_protocol_defaults() 334 prefixdefaults[cip->ci_index].cf_notdefault = _B_FALSE; in set_protocol_defaults() 341 struct configinfo *cip; in print_iflist() local 343 for (cip = iflist; cip->ci_name != NULL; cip++) { in print_iflist() 345 cip->ci_name, cip->ci_min, cip->ci_max, cip->ci_default, in print_iflist() [all …]
|
/illumos-gate/usr/src/lib/librestart/common/ |
H A D | librestart.c | 2212 get_projid(const char *str, struct method_context *cip) in get_projid() argument 2220 if (cip->uid == 0) { in get_projid() 2222 cip->project = NULL; in get_projid() 2226 switch (ret = lookup_pwd(cip)) { in get_projid() 2247 pp = getdefaultproj(cip->pwd.pw_name, &proj, buf, in get_projid() 2257 cip->project = strdup(str); in get_projid() 2258 return (cip->project != NULL ? 0 : ENOMEM); in get_projid() 2287 cip->project = strdup(pp->pj_name); in get_projid() 2289 return (cip->project != NULL ? 0 : ENOMEM); in get_projid() 2805 struct method_context *cip; in restarter_get_method_context() local [all …]
|
/illumos-gate/usr/src/cmd/power/ |
H A D | parse.c | 313 cinfo_t *cip, *info = NULL; in get_cinfo() local 326 for (cip = conftab; cip->keyword; cip++) { in get_cinfo() 327 chr_diff = (int)(*cip->keyword - *keyword); in get_cinfo() 330 lineno, *cip->keyword, *line, chr_diff); in get_cinfo() 335 if (strcmp(keyword, cip->keyword) == 0) { in get_cinfo() 336 info = cip; in get_cinfo() 375 cinfo_t *cip; in parse_conf_file() local 434 if ((cip = get_cinfo()) == NULL) { in parse_conf_file() 437 } else if (cnt != cip->argc && in parse_conf_file() 438 (cip->any == 0 || cnt < cip->argc)) { in parse_conf_file() [all …]
|
H A D | conf.c | 355 tmp_save_line(char *line, size_t len, cinfo_t *cip) in tmp_save_line() argument 357 if (cip && cip->cmt) in tmp_save_line() 358 tmp_write(cip->cmt, strlen(cip->cmt)); in tmp_save_line() 367 filter(char *line, size_t len, cinfo_t *cip) in filter() argument 378 selected = (cip == NULL || (cip->alt && in filter() 379 (checkup == NULL || checkup == cip->status))); in filter() 381 cip ? cip->status->set : "none", selected); in filter() 383 tmp_save_line(line, len, cip); in filter() 408 search(char *line, size_t len, cinfo_t *cip) in search() argument 412 skip = (cip == NULL || cip->alt); in search() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | cpu_event.c | 369 cpu_idle_insert_callback(cpu_idle_cb_impl_t *cip) in cpu_idle_insert_callback() argument 419 if (cpu_idle_cb_array[i - 1].impl->priority >= cip->priority) { in cpu_idle_insert_callback() 424 cpu_idle_cb_array[i].arg = cip->argument; in cpu_idle_insert_callback() 425 cpu_idle_cb_array[i].enter = cip->callback->idle_enter; in cpu_idle_insert_callback() 426 cpu_idle_cb_array[i].exit = cip->callback->idle_exit; in cpu_idle_insert_callback() 427 cpu_idle_cb_array[i].impl = cip; in cpu_idle_insert_callback() 446 cpu_idle_remove_callback(cpu_idle_cb_impl_t *cip) in cpu_idle_remove_callback() argument 472 if (cpu_idle_cb_array[i].impl == cip) { in cpu_idle_remove_callback() 507 cpu_idle_cb_impl_t *cip = NULL; in cpu_idle_register_callback() local 536 for (cip = cpu_idle_cb_busy; cip != NULL; in cpu_idle_register_callback() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ib/mgt/ibmf/ |
H A D | ibmf_kstat.h | 81 #define IBMF_ADD32_PORT_KSTATS(cip, xx, val) \ argument 82 if ((cip != NULL) && (cip->ci_port_kstatp != NULL)) { \ 84 kp = (ibmf_port_kstat_t *)cip->ci_port_kstatp->ks_data; \ 88 #define IBMF_SUB32_PORT_KSTATS(cip, xx, val) \ argument 89 if ((cip != NULL) && (cip->ci_port_kstatp != NULL)) { \ 91 kp = (ibmf_port_kstat_t *)cip->ci_port_kstatp->ks_data; \
|
H A D | ibmf_impl.h | 606 void ibmf_i_release_ci(ibmf_ci_t *cip); 634 int ibmf_i_pkey_ix_to_key(ibmf_ci_t *cip, uint_t port_num, uint_t pkey_ix, 644 void ibmf_i_init_ud_dest(ibmf_ci_t *cip); 645 void ibmf_i_fini_ud_dest(ibmf_ci_t *cip); 646 ibmf_ud_dest_t *ibmf_i_get_ud_dest(ibmf_ci_t *cip); 647 void ibmf_i_put_ud_dest(ibmf_ci_t *cip, ibmf_ud_dest_t *ud_dest); 649 void ibmf_i_clean_ud_dest_list(ibmf_ci_t *cip, boolean_t all); 650 int ibmf_i_alloc_send_resources(ibmf_ci_t *cip, ibmf_msg_impl_t *msgp, 652 void ibmf_i_free_send_resources(ibmf_ci_t *cip, ibmf_msg_impl_t *msgimplp, 654 int ibmf_i_post_recv_buffer(ibmf_ci_t *cip, ibmf_qp_t *qpp, boolean_t block, [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/ext-event-transport/ |
H A D | fmevt_inbound.c | 590 struct fmevt_chaninfo *cip = &chaninfo[i]; in fmevt_init_inbound() local 591 char *channel = fmd_prop_get_string(hdl, cip->ci_propname); in fmevt_init_inbound() 594 if (sysevent_evc_bind(channel, &cip->ci_binding, in fmevt_init_inbound() 599 (void) snprintf(cip->ci_sid, sizeof (cip->ci_sid), in fmevt_init_inbound() 601 cip->ci_cbarg & CBF_USER ? 'u' : 'k', in fmevt_init_inbound() 602 cip->ci_cbarg & CBF_PRIV ? 'p' : 'n', in fmevt_init_inbound() 603 cip->ci_cbarg & CBF_HV ? 'h' : 'l'); in fmevt_init_inbound() 605 err = sysevent_evc_xsubscribe(cip->ci_binding, cip->ci_sid, in fmevt_init_inbound() 606 EC_ALL, fmevt_cb, (void *)cip->ci_cbarg, in fmevt_init_inbound() 607 cip->ci_sflags, subattr); in fmevt_init_inbound() [all …]
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | file_object.c | 597 child_info_t *cip = data; in fill_pg_callback() local 605 rc_node_lookup_t *lp = &cip->ci_base_nl; in fill_pg_callback() 634 cip->ci_parent); in fill_pg_callback() 825 scope_setup_child_info(rc_node_t *np, uint32_t type, child_info_t *cip) in scope_setup_child_info() argument 830 bzero(cip, sizeof (*cip)); in scope_setup_child_info() 831 cip->ci_parent = np; in scope_setup_child_info() 832 cip->ci_base_nl.rl_type = type; in scope_setup_child_info() 833 cip->ci_base_nl.rl_backend = np->rn_id.rl_backend; in scope_setup_child_info() 838 service_setup_child_info(rc_node_t *np, uint32_t type, child_info_t *cip) in service_setup_child_info() argument 848 bzero(cip, sizeof (*cip)); in service_setup_child_info() [all …]
|
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/ |
H A D | ses2_element_ctl.c | 110 ses2_cooling_ctl_impl_t *cip; in elem_setprop_cooling() local 115 if ((cip = ses_plugin_ctlpage_lookup(sp, ses_node_snapshot(np), in elem_setprop_cooling() 123 cip->scci_requested_speed_code = v64; in elem_setprop_cooling() 130 cip->scci_rqst_ident = v1; in elem_setprop_cooling() 132 cip->scci_rqst_on = v1; in elem_setprop_cooling() 134 cip->scci_rqst_fail = v1; in elem_setprop_cooling() 234 ses2_controller_ctl_impl_t *cip; in elem_setprop_esc() local 238 if ((cip = ses_plugin_ctlpage_lookup(sp, ses_node_snapshot(np), in elem_setprop_esc() 246 cip->scci_rqst_fail = v; in elem_setprop_esc() 248 cip->scci_rqst_ident = v; in elem_setprop_esc() [all …]
|
H A D | ses2_element.c | 118 ses2_cooling_status_impl_t *cip = (ses2_cooling_status_impl_t *)esip; in elem_parse_cooling() local 122 SES2_ES_COOLING_ST_FAN_SPEED(cip)); in elem_parse_cooling() 124 cip->scsi_ident); in elem_parse_cooling() 126 cip->scsi_actual_speed_code); in elem_parse_cooling() 127 SES_NV_ADD(boolean_value, nverr, nvl, SES_PROP_OFF, cip->scsi_off); in elem_parse_cooling() 129 cip->scsi_requested_on); in elem_parse_cooling() 130 SES_NV_ADD(boolean_value, nverr, nvl, SES_PROP_FAIL, cip->scsi_fail); in elem_parse_cooling() 203 ses2_controller_status_impl_t *cip = in elem_parse_esc() local 207 SES_NV_ADD(boolean_value, nverr, nvl, SES_PROP_FAIL, cip->scsi_fail); in elem_parse_esc() 208 SES_NV_ADD(boolean_value, nverr, nvl, SES_PROP_IDENT, cip->scsi_ident); in elem_parse_esc() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_idmap.c | 1062 nfs_idmap_cache_create(idmap_cache_info_t *cip, const char *name) in nfs_idmap_cache_create() argument 1067 cip->table = kmem_alloc((NFSID_CACHE_ANCHORS * sizeof (nfsidhq_t)), in nfs_idmap_cache_create() 1070 for (i = 0, hq = cip->table; i < NFSID_CACHE_ANCHORS; i++, hq++) { in nfs_idmap_cache_create() 1075 cip->name = name; in nfs_idmap_cache_create() 1090 nfs_idmap_cache_destroy(idmap_cache_info_t *cip) in nfs_idmap_cache_destroy() argument 1096 nfs_idmap_cache_flush(cip); in nfs_idmap_cache_destroy() 1103 for (i = 0, hq = cip->table; i < NFSID_CACHE_ANCHORS; i++, hq++) in nfs_idmap_cache_destroy() 1105 kmem_free(cip->table, NFSID_CACHE_ANCHORS * sizeof (nfsidhq_t)); in nfs_idmap_cache_destroy() 1168 nfs_idmap_cache_flush(idmap_cache_info_t *cip) in nfs_idmap_cache_flush() argument 1174 for (i = 0, hq = cip->table; i < NFSID_CACHE_ANCHORS; i++, hq++) { in nfs_idmap_cache_flush() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | strsubr.h | 841 ciputctrl_t *cip = (stp)->sd_ciputctrl; \ 843 mutex_enter(&cip[i].ciputctrl_lock); \ 853 ciputctrl_t *cip = (stp)->sd_ciputctrl; \ 855 mutex_exit(&cip[i].ciputctrl_lock); \ 865 ciputctrl_t *cip = (sq)->sq_ciputctrl; \ 868 mutex_enter(&cip[i].ciputctrl_lock); \ 878 ciputctrl_t *cip = (sq)->sq_ciputctrl; \ 881 mutex_exit(&cip[i].ciputctrl_lock); \ 891 ciputctrl_t *cip = (sq)->sq_ciputctrl; \ 894 mutex_enter(&cip[i].ciputctrl_lock); \ [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | tlx.c | 479 tlx_conn_ind_t *cip; in process_tlook() local 500 cip = uu_list_first(tlx_info->conn_ind_queue); in process_tlook() 501 while ((cip != NULL) && in process_tlook() 502 (cip->call->sequence != discon->sequence)) { in process_tlook() 503 cip = uu_list_next(tlx_info->conn_ind_queue, cip); in process_tlook() 505 if (cip != NULL) { /* match found */ in process_tlook() 506 uu_list_remove(tlx_info->conn_ind_queue, cip); in process_tlook() 507 (void) t_free((char *)cip->call, T_CALL); in process_tlook() 508 free(cip); in process_tlook()
|
/illumos-gate/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_engine.c | 240 struct cmd_info *cip; in add_cmd_matches() local 246 for (cip = cmds; cip->name != NULL; ++cip) { in add_cmd_matches() 247 if ((cip->flags & scope) == 0) in add_cmd_matches() 250 if (strncmp(cip->name, bol, len) == 0) { in add_cmd_matches() 252 word_end, cip->name + len, "", " "); in add_cmd_matches() 273 struct cmd_info *cip; in CPL_MATCH_FN() local 284 for (cip = cmds; cip->name != NULL; ++cip) { in CPL_MATCH_FN() 285 if (strlen(cip->name) != arg0len) in CPL_MATCH_FN() 288 if (strncmp(cip->name, arg0, arg0len) != 0) in CPL_MATCH_FN() 291 if (cip->complete_args_f == NULL) in CPL_MATCH_FN() [all …]
|