/illumos-gate/usr/src/uts/common/io/ksocket/ |
H A D | ksocket_impl.h | 61 #define SETCALLBACK(so, cb, cbfn, cbflg) \ 62 if ((cb)->ksock_cb_flags & (cbflg)) { \ 64 = (cb)->ksock_cb_##cbfn; \ 65 if ((cb)->ksock_cb_##cbfn == NULL) \
|
/illumos-gate/usr/src/lib/libbe/common/ |
H A D | be_list.c | 217 list_callback_data_t cb = { 0 }; local 236 (void) strcpy(cb.current_be, "-"); 238 (void) strncpy(cb.current_be, bt.obe_name, 239 sizeof (cb.current_be)); 248 cb.be_name = strdup(be_name); 255 free(cb.be_name); 259 ret = be_get_list_callback(zphp, &cb); 261 if ((zpool_iter(g_zfs, be_get_list_callback, &cb)) != 0) { 262 if (cb.be_nodes_head != NULL) { 263 be_free_list(cb 364 list_callback_data_t cb = { 0 }; local 432 list_callback_data_t *cb = (list_callback_data_t *)data; local 540 list_callback_data_t *cb = (list_callback_data_t *)data; local [all...] |
/illumos-gate/usr/src/uts/common/io/kbtrans/ |
H A D | kbtrans_polled.c | 77 struct kbtrans_callbacks *cb; local 95 cb = upper->kbtrans_streams_hw_callbacks; 102 while (cb->kbtrans_polled_keycheck(hw, &key, &state)) { 249 struct kbtrans_callbacks *cb; local 252 cb = upper->kbtrans_streams_hw_callbacks; 255 cb->kbtrans_polled_setled(hw, upper->kbtrans_lower.kbtrans_led_state);
|
/illumos-gate/usr/src/cmd/zfs/ |
H A D | zfs_main.c | 370 usage_prop_cb(int prop, void *cb) argument 372 FILE *fp = cb; 1018 destroy_cbdata_t *cb = data; local 1021 if (cb->cb_verbose) { 1022 if (cb->cb_parsable) { 1024 } else if (cb->cb_dryrun) { 1042 if (cb->cb_dryrun) { 1054 fnvlist_add_boolean(cb->cb_batchedsnaps, name); 1057 cb->cb_batchedsnaps, B_FALSE); 1058 fnvlist_free(cb 1076 destroy_cbdata_t *cb = arg; local 1116 destroy_print_snapshots(zfs_handle_t *fs_zhp, destroy_cbdata_t *cb) argument 1140 destroy_cbdata_t *cb = arg; local 1162 destroy_cbdata_t *cb = arg; local 1186 destroy_clones(destroy_cbdata_t *cb) argument 1217 destroy_cbdata_t cb = { 0 }; local 1596 zprop_get_cbdata_t cb = { 0 }; local 1844 inherit_cbdata_t *cb = data; local 1861 inherit_cbdata_t *cb = data; local 1871 inherit_cbdata_t cb = { 0 }; local 1984 upgrade_cbdata_t *cb = data; local 2020 upgrade_cbdata_t *cb = data; local 2086 upgrade_cbdata_t cb = { 0 }; local 2383 us_cbdata_t *cb = (us_cbdata_t *)arg; local 2685 us_cbdata_t cb; local 2910 print_header(list_cbdata_t *cb) argument 2953 print_dataset(zfs_handle_t *zhp, list_cbdata_t *cb) argument 3054 list_cbdata_t cb = { 0 }; local 3407 rollback_cbdata_t cb = { 0 }; local 5623 holds_cbdata_t cb = { 0 }; local 5751 get_all_cb_t cb = { 0 }; local [all...] |
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctcon1.c | 56 struct ctmp cb; /* record structure written out of */ variable in typeref:struct:ctmp 375 cb.ct_tty = tp->tdev; 376 CPYN(cb.ct_name, tp->tname); 377 cb.ct_uid = namtouid(cb.ct_name); 378 cb.ct_start = told; 379 if (pnpsplit(cb.ct_start, (ulong_t)(tnew-told), 380 cb.ct_con) == 0) { 385 prctmp(&cb); 398 cb [all...] |
H A D | acctcon.c | 56 struct ctmp cb; /* record structure written out of */ variable in typeref:struct:ctmp 351 cb.ct_tty = tp->tdev; 352 CPYN(cb.ct_name, tp->tname); 353 cb.ct_uid = namtouid(cb.ct_name); 354 cb.ct_start = told; 355 if (pnpsplit(cb.ct_start, (ulong_t)(tnew-told), 356 cb.ct_con) == 0) { 361 enter(&cb); 371 cb [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | driver.c | 277 * Leaf driver entry points. The following [cb]dev_* functions are *not* part 283 struct cb_ops *cb; local 285 cb = devopsp[getmajor(*devp)]->devo_cb_ops; 286 return ((*cb->cb_open)(devp, flag, type, cred)); 292 struct cb_ops *cb; local 294 cb = (devopsp[getmajor(dev)])->devo_cb_ops; 295 return ((*cb->cb_close)(dev, flag, type, cred)); 478 struct cb_ops *cb; local 480 cb = devopsp[getmajor(dev)]->devo_cb_ops; 481 return ((*cb 537 struct cb_ops *cb; local 546 struct cb_ops *cb; local 555 struct cb_ops *cb; local 565 struct cb_ops *cb; local 575 struct cb_ops *cb; local 591 struct cb_ops *cb; local 602 struct cb_ops *cb; local 675 struct cb_ops *cb; local [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | ndievents.c | 110 struct ndi_event_callbacks cb; local 121 if (mdb_vread(&cb, sizeof (struct ndi_event_callbacks), 129 (uintptr_t)cb.ndi_evtcb_dip) == -1) { 131 " %p", cb.ndi_evtcb_dip); 145 callback_list, cb.ndi_evtcb_callback, cb.ndi_evtcb_arg, 146 cb.ndi_evtcb_cookie); 148 callback_list = cb.ndi_evtcb_next;
|
/illumos-gate/usr/src/uts/common/sys/dktp/ |
H A D | tgcom.h | 53 #define TGCOM_PKT(X, bp, cb, arg) \ 55 (((struct tgcom_obj *)(X))->com_data, (bp), (cb), (arg))
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | SLPFindSrvs.c | 40 SLPSrvURLCallback *cb; member in struct:caller_bundle 107 SLPSrvURLCallback cb, void *cookie, 118 /* traverse_surls:invoke cb for sync case,and free resources */ 120 traverse_surls(hp, cb, cookie, *collator); 122 cb(hp, NULL, 0, SLP_LAST_CALL, cookie); 133 return (cb(hp, NULL, 0, errCode, cookie)); 192 /* invoke cb */ 194 cont = cb( 225 SLPSrvURLCallback cb, void *cookie, 234 /* traverse_surls:invoke cb fo 106 slp_unpackSrvReply(slp_handle_impl_t *hp, char *reply, SLPSrvURLCallback cb, void *cookie, void **collator, int *numResults) argument 224 unpackDAAdvert_srv(slp_handle_impl_t *hp, char *reply, SLPSrvURLCallback cb, void *cookie, void **collator, int *numResults) argument 282 unpackSAAdvert_srv(slp_handle_impl_t *hp, char *reply, SLPSrvURLCallback cb, void *cookie, void **collator, int *numResults) argument 505 traverse_surls(SLPHandle h, SLPSrvURLCallback cb, void *cookie, void *collator) argument 520 SLPSrvURLCallback *cb; local [all...] |
/illumos-gate/usr/src/lib/libipmi/common/ |
H A D | ipmi_user.c | 291 ipmi_user_cb_t cb = { 0 }; local 293 cb.uic_name = name; 294 cb.uic_result = NULL; 296 if (ipmi_user_iter(ihp, ipmi_user_callback, &cb) != 0) 299 if (cb.uic_result == NULL) 303 return (cb.uic_result); 309 ipmi_user_cb_t cb = { 0 }; local 311 cb.uic_uid = uid; 312 cb.uic_result = NULL; 314 if (ipmi_user_iter(ihp, ipmi_user_callback, &cb) ! [all...] |
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | zfs.c | 162 cbdata_t cb; local 172 cb.cb_guid = pool_guid; 173 cb.cb_pool = NULL; 175 if (zpool_iter(g_zfs, find_pool, &cb) == 1) { 176 name = zpool_get_name(cb.cb_pool); 189 if (cb.cb_pool) 190 zpool_close(cb.cb_pool);
|
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_main.c | 282 print_prop_cb(int prop, void *cb) argument 284 FILE *fp = cb; 1330 spare_cbdata_t cb; local 1393 &cb.cb_guid) == 0); 1394 if (zpool_iter(g_zfs, find_spare, &cb) == 1) { 1395 if (strcmp(zpool_get_name(cb.cb_zhp), 1402 zpool_get_name(cb.cb_zhp)); 1403 zpool_close(cb.cb_zhp); 2305 print_iostat_separator(iostat_cbdata_t *cb) argument 2309 for (i = 0; i < cb 2315 print_iostat_header(iostat_cbdata_t *cb) argument 2342 print_vdev_stats(zpool_handle_t *zhp, const char *name, nvlist_t *oldnv, nvlist_t *newnv, iostat_cbdata_t *cb, int depth) argument 2479 iostat_cbdata_t *cb = data; local 2500 iostat_cbdata_t *cb = data; local 2532 iostat_cbdata_t *cb = data; local 2660 iostat_cbdata_t cb; local 2782 print_header(list_cbdata_t *cb) argument 2836 print_pool(zpool_handle_t *zhp, list_cbdata_t *cb) argument 2940 print_list_stats(zpool_handle_t *zhp, const char *name, nvlist_t *nv, list_cbdata_t *cb, int depth) argument 3091 list_cbdata_t cb = { 0 }; local 3808 scrub_cbdata_t *cb = data; local 3834 scrub_cbdata_t cb; local 4444 status_cbdata_t cb = { 0 }; local 4789 upgrade_cbdata_t cb = { 0 }; local 4980 hist_cbdata_t *cb = (hist_cbdata_t *)data; local 5188 zprop_get_cbdata_t cb = { 0 }; local 5317 set_cbdata_t *cb = (set_cbdata_t *)data; local 5330 set_cbdata_t cb = { 0 }; local [all...] |
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_pkt.c | 153 int32_t(*cb) (caddr_t); 178 cb = (sleep == KM_SLEEP) ? DDI_DMA_SLEEP : DDI_DMA_DONTWAIT; 200 if (ddi_dma_alloc_handle(hba->dip, &hba->dma_attr_1sg, cb, 209 &emlxs_data_acc_attr, DDI_DMA_CONSISTENT, cb, NULL, 232 DDI_DMA_WRITE | DDI_DMA_CONSISTENT, cb, NULL, 238 DDI_DMA_WRITE | DDI_DMA_CONSISTENT, cb, NULL, 267 if (ddi_dma_alloc_handle(hba->dip, &hba->dma_attr_1sg, cb, 276 &emlxs_data_acc_attr, DDI_DMA_CONSISTENT, cb, NULL, 297 DDI_DMA_READ | DDI_DMA_CONSISTENT, cb, NULL, 303 DDI_DMA_READ | DDI_DMA_CONSISTENT, cb, NUL [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | tty_common.c | 149 struct termios *cb; local 160 cb = (struct termios *)mp->b_cont->b_rptr; 162 tc->t_iflag = cb->c_iflag; 163 tc->t_cflag = cb->c_cflag; 164 tc->t_stopc = cb->c_cc[VSTOP]; 165 tc->t_startc = cb->c_cc[VSTART]; 181 struct termio *cb; local 192 cb = (struct termio *)mp->b_cont->b_rptr; 194 tc->t_iflag = (tc->t_iflag & 0xffff0000 | cb->c_iflag); 195 tc->t_cflag = (tc->t_cflag & 0xffff0000 | cb 311 struct termios *cb; local 335 struct termio *cb; local [all...] |
/illumos-gate/usr/src/uts/common/io/iprb/ |
H A D | iprb.h | 278 #define PUTCB8(cb, o, v) PUTDMA8(cb, o, v) 279 #define PUTCB16(cb, o, v) PUTDMA16(cb, o, v) 280 #define PUTCB32(cb, o, v) PUTDMA32(cb, o, v) 281 #define PUTCBEA(cb, o, enet) \ 282 ddi_rep_put8(cb->acch, enet, (void *)(cb->vaddr + (o)), 6, \ 284 #define GETCB8(cb, [all...] |
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_wr.c | 116 kmdb_wr_debugger_process(int (*cb)(kmdb_wr_t *, void *), void *arg) 135 i += cb(wn, arg); 184 kmdb_wr_driver_process(int (*cb)(kmdb_wr_t *, void *), void *arg) 208 if ((rv = cb(wn, arg)) < 0)
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | ulockf.c | 302 char cb[100]; local 306 (void) sprintf(cb, "%s %s %d",tempfile, name, errno); 307 logent("ULOCKC", cb); 314 (void) sprintf(cb, "%s %s %d",tempfile, name, errno); 315 logent("ULOCKW", cb); 327 (void) sprintf(cb, "ULK err %s %d", tempfile, errno); 328 logent("ULOCKLNK", cb); 333 (void) sprintf(cb, "%s %d",tempfile,errno); 334 logent("ULOCKF", cb);
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | trackio.h | 79 int (*cb)(int64_t, int64_t), int64_t arg, struct
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | ulockf.c | 301 char cb[100]; local 305 (void) sprintf(cb, "%s %s %d",tempfile, name, errno); 306 logent("ULOCKC", cb); 313 (void) sprintf(cb, "%s %s %d",tempfile, name, errno); 314 logent("ULOCKW", cb); 326 (void) sprintf(cb, "ULK err %s %d", tempfile, errno); 327 logent("ULOCKLNK", cb); 332 (void) sprintf(cb, "%s %d",tempfile,errno); 333 logent("ULOCKF", cb);
|
/illumos-gate/usr/src/lib/libpool/common/ |
H A D | pool.c | 272 char_buf_t *cb = (char_buf_t *)user; local 282 if (append_char_buf(cb, "\n%s\t%s\t%s ", cb->cb_tab_buf, 288 if (append_char_buf(cb, "%llu", (u_longlong_t)u) == PO_FAIL) 293 if (append_char_buf(cb, "%lld", (longlong_t)i) == PO_FAIL) 298 if (append_char_buf(cb, "%s", str) == PO_FAIL) 304 if (append_char_buf(cb, "%s", "false") == PO_FAIL) 307 if (append_char_buf(cb, "%s", "true") == PO_FAIL) 313 if (append_char_buf(cb, "%g", d) == PO_FAIL) 330 pool_base_info(const pool_elem_t *pe, char_buf_t *cb, in argument 895 char_buf_t *cb; local 1026 char_buf_t *cb; local 1075 char_buf_t *cb; local 1908 char_buf_t *cb = NULL; local [all...] |
H A D | pool_internal.c | 1176 char_buf_t *cb; local 1180 if ((cb = alloc_char_buf(CB_DEFAULT_LEN)) == NULL) { 1183 if (set_char_buf(cb, "%s.default", pool_elem_class_string(pe)) != 1185 free_char_buf(cb); 1188 if (pool_value_set_name(props[0], cb->cb_buf) != PO_SUCCESS) { 1189 free_char_buf(cb); 1192 free_char_buf(cb); 1304 char_buf_t *cb; local 1315 if ((cb = alloc_char_buf(CB_DEFAULT_LEN)) == NULL) { 1318 if (set_char_buf(cb, " 1506 resize_char_buf(char_buf_t *cb, size_t size) argument 1534 char_buf_t *cb; local 1553 free_char_buf(char_buf_t *cb) argument 1567 set_char_buf(char_buf_t *cb, const char *fmt, ...) argument 1593 append_char_buf(char_buf_t *cb, const char *fmt, ...) argument [all...] |
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | hald_runner.c | 45 HalRunTerminatedCB cb; member in struct:__anon621 58 HalRunTerminatedCB cb; member in struct:__anon622 124 rp->cb (rp->device, 0, 0, NULL, rp->data1, rp->data2); 366 HalRunTerminatedCB cb, gpointer data1, gpointer data2) 397 if (cb != NULL) { 401 rp->cb = cb; 456 hb->cb(hb->d, exitt, return_code, 469 hb->cb(hb->d, HALD_RUN_FAILED, return_code, NULL, hb->data1, hb->data2); 485 HalRunTerminatedCB cb, 365 hald_runner_start(HalDevice *device, const gchar *command_line, char **extra_env, HalRunTerminatedCB cb, gpointer data1, gpointer data2) argument 481 hald_runner_run_method(HalDevice *device, const gchar *command_line, char **extra_env, gchar *input, gboolean error_on_stderr, guint32 timeout, HalRunTerminatedCB cb, gpointer data1, gpointer data2) argument 532 hald_runner_run(HalDevice *device, const gchar *command_line, char **extra_env, guint timeout, HalRunTerminatedCB cb, gpointer data1, gpointer data2) argument [all...] |
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | zcons.c | 182 struct cb_data *cb = (struct cb_data *)arg; local 189 cb->found++; 200 struct cb_data cb; local 202 bzero(&cb, sizeof (cb)); 203 cb.zlogp = zlogp; 211 (void) di_walk_node(root, DI_WALK_CLDFIRST, (void *)&cb, count_cb); 213 return (cb.found); 226 struct cb_data *cb = (struct cb_data *)arg; local 242 cb 267 struct cb_data cb; local [all...] |
/illumos-gate/usr/src/lib/fm/libldom/sparc/ |
H A D | ldom_xmpp_client.h | 91 ldom_reg_cb_t cb; member in struct:client_info 104 extern int xmpp_add_client(ldom_hdl_t *lhp, ldom_reg_cb_t cb,
|