/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_reads.c | 52 static int validate_filter(ns_ldap_cookie_t *cookie); 811 __s_api_getEntry(ns_ldap_cookie_t *cookie) in __s_api_getEntry() argument 820 if (cookie->resultMsg == NULL) { in __s_api_getEntry() 823 ret = __s_api_cvtEntry(cookie->conn->ld, cookie->service, in __s_api_getEntry() 824 cookie->resultMsg, cookie->i_flags, in __s_api_getEntry() 825 &curEntry, &cookie->errorp); in __s_api_getEntry() 830 if (cookie->result == NULL) { in __s_api_getEntry() 831 cookie->result = (ns_ldap_result_t *) in __s_api_getEntry() 833 if (cookie->result == NULL) { in __s_api_getEntry() 838 cookie->result->entry = curEntry; in __s_api_getEntry() [all …]
|
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/ |
H A D | Lgrp.pm | 111 my $cookie = shift; 113 $root = lgrp_root($cookie) unless defined $root; 115 my @children = lgrp_children($cookie, $root); 124 ($root, map {lgrp_lgrps($cookie, $_)} @children) : 138 my $cookie = shift; 140 $root = lgrp_root($cookie) unless defined $root; 143 lgrp_isleaf($cookie, $_) 144 } lgrp_lgrps($cookie, $root); 157 sub cookie subroutine 183 lgrp_fini(cookie(shift)); [all …]
|
H A D | Lgrp.xs | 127 _lgrp_latency_cookie(lgrp_cookie_t cookie, lgrp_id_t from, lgrp_id_t to, in _lgrp_latency_cookie() argument 132 lgrp_latency_cookie(cookie, from, to, between)); in _lgrp_latency_cookie() 203 lgrp_view(cookie) 204 lgrp_cookie_t cookie 227 lgrp_cookie_stale(cookie) 228 lgrp_cookie_t cookie; 233 lgrp_fini(cookie) 234 lgrp_cookie_t cookie; 252 lgrp_mem_size(cookie, lgrp, type, content) 253 lgrp_cookie_t cookie [all …]
|
/illumos-gate/usr/src/cmd/ldapcachemgr/ |
H A D | cachemgr_discovery.c | 239 SLPError errin, void *cookie) { in aggregate_attrs() argument 245 struct config_cookie *cfg = (struct config_cookie *)cookie; in aggregate_attrs() 303 SLPError errin, void *cookie) { in foreach_server() argument 305 struct config_cookie *cfg = (struct config_cookie *)cookie; in foreach_server() 335 err = SLPFindAttrs(h, u, cfg->scopes, "", aggregate_attrs, cookie); in foreach_server() 359 static void update_config(const char *context, struct config_cookie *cookie) { in update_config() argument 376 cookie->cache_cfg = cookie->get_cfghandle(unesc_domain); in update_config() 387 cookie->h = persrv_h; in update_config() 394 search = malloc(strlen(cookie->context_attr) + in update_config() 401 (void) sprintf(search, "(%s=%s)", cookie->context_attr, context); in update_config() [all …]
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_cookie.c | 101 DAPL_COOKIE *cookie); 325 IN DAPL_COOKIE *cookie) in dapls_cb_put() argument 327 buffer->tail = cookie->index; in dapls_cb_put() 357 DAPL_COOKIE *cookie; in dapls_rmr_cookie_alloc() local 360 if (DAT_SUCCESS != dapls_cb_get(buffer, &cookie)) { in dapls_rmr_cookie_alloc() 368 cookie->type = DAPL_COOKIE_TYPE_RMR; in dapls_rmr_cookie_alloc() 369 cookie->val.rmr.rmr = rmr; in dapls_rmr_cookie_alloc() 370 cookie->val.rmr.cookie = user_cookie; in dapls_rmr_cookie_alloc() 371 *cookie_ptr = cookie; in dapls_rmr_cookie_alloc() 403 DAPL_COOKIE *cookie; in dapls_dto_cookie_alloc() local [all …]
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_callbacks.c | 79 ndmpd_api_done_v2(void *cookie, int err) in ndmpd_api_done_v2() argument 81 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_done_v2() 168 ndmpd_api_log_v2(void *cookie, char *format, ...) in ndmpd_api_log_v2() argument 170 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_log_v2() 249 ndmpd_api_seek_v2(void *cookie, u_longlong_t offset, u_longlong_t length) in ndmpd_api_seek_v2() argument 251 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_seek_v2() 318 ndmpd_api_file_recovered_v2(void *cookie, char *name, int error) in ndmpd_api_file_recovered_v2() argument 320 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_file_recovered_v2() 405 ndmpd_api_done_v3(void *cookie, int err) in ndmpd_api_done_v3() argument 407 ndmpd_session_t *session = (ndmpd_session_t *)cookie; in ndmpd_api_done_v3() [all …]
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_tavor_ibtf_dto.c | 53 IN DAPL_COOKIE *cookie, in dapls_ib_post_recv() argument 97 if (cookie != NULL) { in dapls_ib_post_recv() 98 cookie->val.dto.size = total_len; in dapls_ib_post_recv() 101 "size(%d) hkey(%016llx)\n", cookie, num_segments, in dapls_ib_post_recv() 102 cookie->val.dto.size, ep_ptr->qp_handle->ep_hkey); in dapls_ib_post_recv() 105 pr_wr.wr_id = (ibt_wrid_t)(uintptr_t)cookie; in dapls_ib_post_recv() 152 IN DAPL_COOKIE *cookie, in dapls_ib_post_recv_one() argument 176 if (cookie != NULL) { in dapls_ib_post_recv_one() 177 cookie->val.dto.size = total_len; in dapls_ib_post_recv_one() 180 "size(%d) hkey(%016llx)\n", cookie, in dapls_ib_post_recv_one() [all …]
|
/illumos-gate/usr/src/lib/liblgrp/common/ |
H A D | lgrp.c | 513 lgrp_cookie_stale(lgrp_cookie_t cookie) in lgrp_cookie_stale() argument 521 snap = (lgrp_snapshot_header_t *)cookie; in lgrp_cookie_stale() 522 if (snap == NULL || snap->ss_magic != cookie) { in lgrp_cookie_stale() 552 lgrp_view(lgrp_cookie_t cookie) in lgrp_view() argument 556 snap = (lgrp_snapshot_header_t *)cookie; in lgrp_view() 557 if (snap == NULL || snap->ss_magic != cookie) { in lgrp_view() 570 lgrp_nlgrps(lgrp_cookie_t cookie) in lgrp_nlgrps() argument 574 snap = (lgrp_snapshot_header_t *)cookie; in lgrp_nlgrps() 576 if (snap == NULL || snap->ss_magic != cookie) { in lgrp_nlgrps() 589 lgrp_root(lgrp_cookie_t cookie) in lgrp_root() argument [all …]
|
/illumos-gate/usr/src/uts/common/klm/ |
H A D | nlm_rpc_svc.c | 84 dst->cookie = src->cookie; in nlm_convert_to_nlm4_res() 148 dst->cookie = src->cookie; in nlm_convert_to_nlm_res() 168 args4.cookie = argp->cookie; in nlm_test_1_svc() 174 resp->cookie = res4.cookie; in nlm_test_1_svc() 199 args4.cookie = argp->cookie; in nlm_lock_1_svc() 236 args1.cookie = argp->cookie; in nlm_granted_1_cb() 256 args4.cookie = argp->cookie; in nlm_cancel_1_svc() 277 args4.cookie = argp->cookie; in nlm_unlock_1_svc() 296 args4.cookie = argp->cookie; in nlm_granted_1_svc() 332 args4.cookie = argp->cookie; in nlm_test_msg_1_svc() [all …]
|
H A D | nlm_rpc_clnt.c | 85 dst->cookie = src->cookie; in nlm_convert_to_nlm4_res() 100 args1.cookie = args->cookie; in nlm_test_rpc() 108 res->cookie = res1.cookie; in nlm_test_rpc() 131 args1.cookie = args->cookie; in nlm_lock_rpc() 160 args1.cookie = args->cookie; in nlm_cancel_rpc() 187 args1.cookie = args->cookie; in nlm_unlock_rpc() 229 dst->cookie = src->cookie; in nlm_convert_to_nlm4_shres() 246 args3.cookie = args->cookie; in nlm_share_rpc() 272 args3.cookie = args->cookie; in nlm_unshare_rpc()
|
/illumos-gate/usr/src/uts/common/rpcsvc/ |
H A D | nlm_prot.x | 92 netobj cookie; member 97 netobj cookie; member 111 netobj cookie; member 120 netobj cookie; member 127 netobj cookie; member 133 netobj cookie; member 169 netobj cookie; member 175 netobj cookie; member 243 netobj cookie; member 248 netobj cookie; member [all …]
|
/illumos-gate/usr/src/lib/libkvm/common/ |
H A D | test.c | 49 kvm_t *cookie; variable 131 if (cookie == NULL) in main() 141 if (kvm_read(cookie, (uintptr_t)proc->p_pidp, &pid, in main() 173 if ((cookie = kvm_open(namelist, corefile, in tst_open() 175 printf("ERROR: kvm_open returned %p\n", cookie); in tst_open() 184 if ((i = kvm_close(cookie)) != 0) in tst_close() 195 if ((i = kvm_nlist(cookie, nl)) != 0) in tst_nlist() 264 if ((e = kvm_read(cookie, addr, buf, nbytes)) != nbytes) in tst_read() 282 if ((e = kvm_write(cookie, addr, buf, nbytes)) != nbytes) in tst_write() 288 if ((i = kvm_read(cookie, addr, b, nbytes)) != nbytes) in tst_write() [all …]
|
/illumos-gate/usr/src/lib/libidmap/common/ |
H A D | sized_array.c | 49 char cookie[8]; member 73 (void) memcpy(sa->cookie, COOKIE, sizeof (sa->cookie)); in sized_array() 90 assert(memcmp(sa->cookie, COOKIE, sizeof (sa->cookie)) == 0); in sized_array_free() 104 assert(memcmp(sa->cookie, COOKIE, sizeof (sa->cookie)) == 0); in sized_array_n() 118 assert(memcmp(sa->cookie, COOKIE, sizeof (sa->cookie)) == 0); in sized_array_sz()
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | spagectrl.c | 22 int ldap_create_page_control(LDAP *ld, unsigned int pagesize, struct berval *cookie, char isCritica… in ldap_create_page_control() argument 35 (cookie && cookie->bv_val) ? cookie->bv_val : "", in ldap_create_page_control() 36 (cookie && cookie->bv_val) ? cookie->bv_len : 0) in ldap_create_page_control() 49 …se_page_control(LDAP *ld, LDAPControl **controls, unsigned int *totalcount, struct berval **cookie) in ldap_parse_page_control() argument 61 if ((rc = ber_scanf(theBer, "{iO}", totalcount, cookie)) == LBER_ERROR){ in ldap_parse_page_control()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | ftrace.c | 359 ftrace_icookie_t cookie; in ftrace_0() local 364 cookie = ftrace_interrupt_disable(); in ftrace_0() 370 ftrace_interrupt_enable(cookie); in ftrace_0() 384 ftrace_interrupt_enable(cookie); in ftrace_0() 393 ftrace_icookie_t cookie; in ftrace_1() local 398 cookie = ftrace_interrupt_disable(); in ftrace_1() 404 ftrace_interrupt_enable(cookie); in ftrace_1() 419 ftrace_interrupt_enable(cookie); in ftrace_1() 428 ftrace_icookie_t cookie; in ftrace_2() local 433 cookie = ftrace_interrupt_disable(); in ftrace_2() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/test/tests/mevent/ |
H A D | read_pause.c | 44 static char cookie[] = "Chocolate chip with fudge stripes"; variable 56 char buf[sizeof (cookie)] = { 0 }; in munch() 61 ASSERT_PTR_EQ(("bad cookie"), arg, cookie); in munch() 68 expected = strlen(cookie) - pauseat - 1; in munch() 81 ASSERT_CHAR_EQ(("bad byte %d of cookie", i), buf[0], cookie[i]); in munch() 83 ASSERT_STR_EQ(("bad last half of cookie"), buf, &cookie[i]); in munch() 120 evp = mevent_add(pipefds[0], EVF_READ, munch, cookie); in main() 123 for (int i = 0; cookie[i] != 0; i++) { in main() 125 written = write(pipefds[1], cookie + i, 1); in main() 137 &cookie[pauseat]); in main()
|
/illumos-gate/usr/src/lib/librcm/ |
H A D | librcm_event.c | 245 door_service(void *cookie, char *args, size_t alen, in door_service() argument 251 door_cookie_t *cook = (door_cookie_t *)cookie; in door_service() 258 free_door_result(cookie, *(uint64_t *)(void *)args); in door_service() 331 door_cookie_t *cookie; in create_event_service() local 341 if ((cookie = calloc(1, sizeof (*cookie))) == NULL) { in create_event_service() 345 cookie->door_func = func; in create_event_service() 346 if ((service_door = door_create(door_service, (void *)cookie, in create_event_service() 349 free(cookie); in create_event_service() 368 free(cookie); in create_event_service() 380 door_cookie_t *cookie; in revoke_event_service() local [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | lgrp_user.h | 253 int lgrp_children(lgrp_cookie_t cookie, lgrp_id_t lgrp, 256 int lgrp_cookie_stale(lgrp_cookie_t cookie); 258 int lgrp_cpus(lgrp_cookie_t cookie, lgrp_id_t lgrp, 261 int lgrp_fini(lgrp_cookie_t cookie); 265 int lgrp_latency_cookie(lgrp_cookie_t cookie, lgrp_id_t from, 272 lgrp_mem_size_t lgrp_mem_size(lgrp_cookie_t cookie, lgrp_id_t lgrp, 275 int lgrp_nlgrps(lgrp_cookie_t cookie); 277 int lgrp_parents(lgrp_cookie_t cookie, lgrp_id_t lgrp, 280 int lgrp_resources(lgrp_cookie_t cookie, lgrp_id_t lgrp, 283 lgrp_id_t lgrp_root(lgrp_cookie_t cookie); [all …]
|
H A D | sunndi.h | 503 #define NDI_EVENT(cookie) ((struct ndi_event_cookie *)(void *)(cookie)) argument 504 #define NDI_EVENT_NAME(cookie) (NDI_EVENT(cookie)->definition->ndi_event_name) argument 505 #define NDI_EVENT_TAG(cookie) (NDI_EVENT(cookie)->definition->ndi_event_tag) argument 506 #define NDI_EVENT_ATTRIBUTES(cookie) \ argument 507 (NDI_EVENT(cookie)->definition->ndi_event_attributes) 508 #define NDI_EVENT_PLEVEL(cookie) \ argument 509 (NDI_EVENT(cookie)->definition->ndi_event_plevel) 510 #define NDI_EVENT_DDIP(cookie) (NDI_EVENT(cookie)->ddip) argument 530 ndi_event_alloc_hdl(dev_info_t *dip, ddi_iblock_cookie_t cookie, 562 ddi_eventcookie_t cookie, ddi_event_cb_f event_callback, void *arg, [all …]
|
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | getservent.c | 75 _nss_services_cookie_t *cookie; in _nss_services_cookie_new() local 77 if ((cookie = calloc(1, sizeof (*cookie))) == NULL) in _nss_services_cookie_new() 84 cookie->result = result; in _nss_services_cookie_new() 86 cookie->index = index; in _nss_services_cookie_new() 87 cookie->cname = cname; in _nss_services_cookie_new() 89 return (cookie); in _nss_services_cookie_new() 117 _nss_services_cookie_t *cookie = (_nss_services_cookie_t *) in _nss_ldap_services2str() local 120 if (cookie) { in _nss_ldap_services2str() 125 result = cookie->result; in _nss_ldap_services2str() 126 cname = cookie->cname; in _nss_ldap_services2str() [all …]
|
/illumos-gate/usr/src/uts/common/sys/fc4/ |
H A D | fc_transport.h | 216 void *cookie, 223 void *cookie, 235 void *cookie, 243 void *cookie, 255 void *cookie); 274 void *cookie, 283 void *cookie, 299 void *cookie,
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vnet_dds.c | 81 uint64_t cookie; member 97 static dev_info_t *vdds_create_niu_node(uint64_t cookie, 99 static int vdds_destroy_niu_node(dev_info_t *niu_dip, uint64_t cookie); 105 static dev_info_t *vdds_find_node(uint64_t cookie, dev_info_t *sdip, 109 static int vdds_get_interrupts(uint64_t cookie, int ino_range, 116 static void vdds_release_range_prop(dev_info_t *nexus_dip, uint64_t cookie); 128 extern uint64_t vdds_hv_niu_vrtx_set_ino(uint32_t cookie, uint64_t vch_idx, 130 extern uint64_t vdds_hv_niu_vrrx_set_ino(uint32_t cookie, uint64_t vch_idx, 431 hio_cookie = dmsg->msg.share_msg.cookie; in vdds_process_dds_msg_task() 548 smsg->cookie = vdds->hio_cookie; in vdds_send_dds_rel_msg() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | ndievents.c | 108 ndi_callback_print(struct ndi_event_cookie *cookie, uint_t flags) in ndi_callback_print() argument 116 if (!cookie) { in ndi_callback_print() 120 callback_list = cookie->callback_list; in ndi_callback_print() 162 struct ndi_event_cookie cookie; in ndi_event_print() local 176 if (mdb_vread(&cookie, sizeof (struct ndi_event_cookie), in ndi_event_print() 183 (uintptr_t)cookie.definition) == -1) { in ndi_event_print() 185 cookie.definition); in ndi_event_print() 198 cookie.ddip, def.ndi_event_attributes); in ndi_event_print() 200 ndi_callback_print(&cookie, flags); in ndi_event_print() 201 cookie_list = cookie.next_cookie; in ndi_event_print()
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | SLPFindSrvs.c | 39 void *cookie; member 104 SLPSrvURLCallback cb, void *cookie, in slp_unpackSrvReply() argument 117 traverse_surls(hp, cb, cookie, *collator); in slp_unpackSrvReply() 119 cb(hp, NULL, 0, SLP_LAST_CALL, cookie); in slp_unpackSrvReply() 130 return (cb(hp, NULL, 0, errCode, cookie)); in slp_unpackSrvReply() 196 cookie); in slp_unpackSrvReply() 222 SLPSrvURLCallback cb, void *cookie, in unpackDAAdvert_srv() argument 233 traverse_surls(hp, cb, cookie, *collator); in unpackDAAdvert_srv() 235 cb(hp, NULL, 0, SLP_LAST_CALL, cookie); in unpackDAAdvert_srv() 244 return (cb(hp, NULL, 0, errCode, cookie)); in unpackDAAdvert_srv() [all …]
|
H A D | slp_search.c | 58 int level, void *cookie) { in slp_twalk() argument 61 (*action)(root, leaf, level, cookie); in slp_twalk() 63 (*action)(root, preorder, level, cookie); in slp_twalk() 65 slp_twalk(root->llink, action, level + 1, cookie); in slp_twalk() 66 (*action)(root, postorder, level, cookie); in slp_twalk() 68 slp_twalk(root->rlink, action, level + 1, cookie); in slp_twalk() 69 (*action)(root, endorder, level, cookie); in slp_twalk()
|