/illumos-gate/usr/src/lib/libpicl/ |
H A D | picl.c | 166 (void) munmap(darg.rbuf, darg.rsize); in handshake() 291 (void) munmap(darg.rbuf, darg.rsize); in picl_shutdown() 319 (void) munmap(darg.rbuf, darg.rsize); in picl_wait() 345 (void) munmap(darg.rbuf, darg.rsize); in picl_get_root() 383 (void) munmap(darg.rbuf, darg.rsize); in picl_get_propval() 423 (void) munmap(darg.rbuf, darg.rsize); in picl_get_propval_by_name() 457 (void) munmap(darg.rbuf, darg.rsize); in picl_set_propval() 494 (void) munmap(darg.rbuf, darg.rsize); in picl_set_propval_by_name() 527 (void) munmap(darg.rbuf, darg.rsize); in picl_get_propinfo() 557 (void) munmap(darg.rbuf, darg.rsize); in picl_get_first_prop() [all …]
|
/illumos-gate/usr/src/cmd/isns/isnsadm/ |
H A D | isnsadm.c | 313 bzero(&darg, sizeof (darg)); in handle_association_info() 2619 bzero(&darg, sizeof (darg)); in list_node_func() 2740 bzero(&darg, sizeof (darg)); in list_dd_func() 2841 bzero(&darg, sizeof (darg)); in list_ddset_func() 2850 bzero(&darg, sizeof (darg)); in list_ddset_func() 2915 bzero(&darg, sizeof (darg)); in create_dd_func() 2981 bzero(&darg, sizeof (darg)); in create_ddset_func() 3051 bzero(&darg, sizeof (darg)); in modify_dd_func() 3119 bzero(&darg, sizeof (darg)); in modify_dd_func() 3188 bzero(&darg, sizeof (darg)); in modify_ddset_func() [all …]
|
/illumos-gate/usr/src/cmd/ibd_upgrade/ |
H A D | ibd_delete_link.c | 41 door_arg_t darg; in ibd_dladm_door_call() local 45 darg.data_ptr = arg; in ibd_dladm_door_call() 46 darg.data_size = asize; in ibd_dladm_door_call() 47 darg.desc_ptr = NULL; in ibd_dladm_door_call() 48 darg.desc_num = 0; in ibd_dladm_door_call() 49 darg.rbuf = rbuf; in ibd_dladm_door_call() 50 darg.rsize = rsize; in ibd_dladm_door_call() 56 if (door_call(door_fd, &darg) == -1) in ibd_dladm_door_call() 59 if (darg.rbuf != rbuf) { in ibd_dladm_door_call() 65 (void) munmap(darg.rbuf, darg.rsize); in ibd_dladm_door_call() [all …]
|
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_comm.c | 289 door_arg_t darg, save_arg; in sdev_ki_call_devfsadmd() local 301 darg.data_ptr = (char *)argp; in sdev_ki_call_devfsadmd() 302 darg.data_size = sizeof (struct sdev_door_arg); in sdev_ki_call_devfsadmd() 303 darg.desc_ptr = NULL; in sdev_ki_call_devfsadmd() 304 darg.desc_num = 0; in sdev_ki_call_devfsadmd() 305 darg.rbuf = (char *)(resultp); in sdev_ki_call_devfsadmd() 306 darg.rsize = sizeof (struct sdev_door_res); in sdev_ki_call_devfsadmd() 309 save_arg = darg; in sdev_ki_call_devfsadmd() 312 if ((error = door_ki_upcall_limited(sdev_upcall_door, &darg, in sdev_ki_call_devfsadmd() 365 darg = save_arg; in sdev_ki_call_devfsadmd() [all …]
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | getifaddrs.c | 192 door_arg_t darg; in dl_door_call() local 193 darg.data_ptr = arg; in dl_door_call() 194 darg.data_size = asize; in dl_door_call() 195 darg.desc_ptr = NULL; in dl_door_call() 196 darg.desc_num = 0; in dl_door_call() 197 darg.rbuf = rbuf; in dl_door_call() 198 darg.rsize = *rsizep; in dl_door_call() 204 if (darg.rbuf != rbuf) { in dl_door_call() 211 (void) munmap(darg.rbuf, darg.rsize); in dl_door_call() 212 *rsizep = darg.rsize; in dl_door_call() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/common/piclevent/ |
H A D | picl_slm.c | 127 door_arg_t darg; in post_piclevent() local 129 darg.data_ptr = pack_buf; in post_piclevent() 130 darg.data_size = nvl_size; in post_piclevent() 131 darg.desc_ptr = NULL; in post_piclevent() 132 darg.desc_num = 0; in post_piclevent() 133 darg.rbuf = NULL; in post_piclevent() 134 darg.rsize = 0; in post_piclevent() 136 if (door_fd < 0 || door_call(door_fd, &darg) < 0) { in post_piclevent() 155 if (door_fd < 0 || door_call(door_fd, &darg) < 0) { in post_piclevent()
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_traverse.c | 146 dent_arg_t *darg); 156 dent_arg_t *darg = (dent_arg_t *)arg; in fs_populate_dents() local 160 if ((darg->da_end + reclen) > darg->da_size) in fs_populate_dents() 164 dent = (fs_dent_info_t *)(darg->da_buf + darg->da_end); in fs_populate_dents() 171 darg->da_end += reclen; in fs_populate_dents() 224 long *n_entries, dent_arg_t *darg) in fs_getdents() argument 667 darg->da_end = 0; in traverse_level_nondir() 758 dent_arg_t darg; in traverse_level() local 821 if (!darg.da_buf) { in traverse_level() 828 darg.da_size = MAX_DENT_BUF_SIZE; in traverse_level() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | syslog.c | 394 door_arg_t darg; in syslogd_ok() local 411 darg.data_ptr = NULL; in syslogd_ok() 412 darg.data_size = 0; in syslogd_ok() 413 darg.desc_ptr = NULL; in syslogd_ok() 414 darg.desc_num = 0; in syslogd_ok() 415 darg.rbuf = NULL; in syslogd_ok() 416 darg.rsize = 0; in syslogd_ok() 417 s = __door_call(d, &darg); in syslogd_ok()
|
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | libipadm.c | 896 door_arg_t darg; in ipadm_door_call() local 907 darg.data_ptr = arg; in ipadm_door_call() 908 darg.data_size = asize; in ipadm_door_call() 909 darg.desc_ptr = NULL; in ipadm_door_call() 910 darg.desc_num = 0; in ipadm_door_call() 911 darg.rbuf = *rbufp; in ipadm_door_call() 912 darg.rsize = rsize; in ipadm_door_call() 941 if (darg.rbuf != *rbufp) { in ipadm_door_call() 964 (void) memcpy(*rbufp, darg.rbuf, darg.rsize); in ipadm_door_call() 968 (void) munmap(darg.rbuf, darg.rsize); in ipadm_door_call() [all …]
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlmgmt.c | 59 door_arg_t darg; in dladm_door_call() local 64 darg.data_ptr = arg; in dladm_door_call() 65 darg.data_size = asize; in dladm_door_call() 66 darg.desc_ptr = NULL; in dladm_door_call() 67 darg.desc_num = 0; in dladm_door_call() 68 darg.rbuf = rbuf; in dladm_door_call() 69 darg.rsize = *rsizep; in dladm_door_call() 91 if (darg.rbuf != rbuf) { in dladm_door_call() 97 (void) munmap(darg.rbuf, darg.rsize); in dladm_door_call() 98 *rsizep = darg.rsize; in dladm_door_call() [all …]
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_io.c | 534 door_arg_t darg; in au_door_upcall() local 538 darg.data_ptr = (char *)aubuf; in au_door_upcall() 539 darg.data_size = AU_DBUF_HEADER + aubuf->aub_size; in au_door_upcall() 541 darg.desc_ptr = NULL; in au_door_upcall() 542 darg.desc_num = 0; in au_door_upcall() 546 darg.rbuf = (char *)aubuf; in au_door_upcall() 547 darg.rsize = darg.data_size; in au_door_upcall() 560 rc = door_upcall(kctx->auk_current_vp, &darg, NULL, in au_door_upcall() 579 if (darg.rbuf == NULL) in au_door_upcall() 583 return (*(int *)darg.rbuf); in au_door_upcall()
|
/illumos-gate/usr/src/lib/varpd/libvarpd/common/ |
H A D | libvarpd_client.c | 54 door_arg_t darg; in libvarpd_c_door_call() local 56 darg.data_ptr = (char *)argp; in libvarpd_c_door_call() 57 darg.desc_ptr = NULL; in libvarpd_c_door_call() 58 darg.desc_num = 0; in libvarpd_c_door_call() 59 darg.rbuf = (char *)argp; in libvarpd_c_door_call() 61 darg.data_size = altsize; in libvarpd_c_door_call() 62 darg.rsize = altsize; in libvarpd_c_door_call() 64 darg.data_size = sizeof (varpd_client_arg_t); in libvarpd_c_door_call() 65 darg.rsize = sizeof (varpd_client_arg_t); in libvarpd_c_door_call() 69 ret = door_call(client->vcl_doorfd, &darg); in libvarpd_c_door_call()
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | ns_files.c | 664 door_arg_t darg; in call_read_execout() local 673 darg.data_ptr = (char *)&command; in call_read_execout() 674 darg.data_size = sizeof (command); in call_read_execout() 675 darg.desc_ptr = NULL; in call_read_execout() 676 darg.desc_num = 0; in call_read_execout() 677 darg.rbuf = line; in call_read_execout() 678 darg.rsize = linesz; in call_read_execout() 680 ret = door_call(did_exec_map, &darg); in call_read_execout()
|
H A D | autod_mount.c | 661 door_arg_t darg; local 692 darg.data_ptr = (char *)&command; 693 darg.data_size = sizeof (command); 694 darg.desc_ptr = NULL; 695 darg.desc_num = 0; 696 darg.rbuf = (char *)&status; 697 darg.rsize = sizeof (status); 699 ret = door_call(did_fork_exec, &darg);
|
/illumos-gate/usr/src/uts/common/io/net80211/ |
H A D | net80211.c | 150 door_arg_t darg; in ieee80211_event_thread() local 169 darg.data_ptr = (char *)&ev; in ieee80211_event_thread() 170 darg.data_size = sizeof (wl_events_t); in ieee80211_event_thread() 171 darg.desc_ptr = NULL; in ieee80211_event_thread() 172 darg.desc_num = 0; in ieee80211_event_thread() 173 darg.rbuf = NULL; in ieee80211_event_thread() 174 darg.rsize = 0; in ieee80211_event_thread() 176 if (door_ki_upcall_limited(event_door, &darg, NULL, SIZE_MAX, 0) != 0) { in ieee80211_event_thread()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | log_sysevent.c | 200 door_arg_t darg, save_arg; in log_event_upcall() local 210 darg.rbuf = (char *)arg; in log_event_upcall() 212 darg.rsize = size; in log_event_upcall() 213 darg.data_size = size; in log_event_upcall() 214 darg.desc_ptr = NULL; in log_event_upcall() 215 darg.desc_num = 0; in log_event_upcall() 220 save_arg = darg; in log_event_upcall() 259 darg = save_arg; in log_event_upcall() 268 darg = save_arg; in log_event_upcall() 286 (void *)darg.data_ptr, in log_event_upcall() [all …]
|
H A D | evchannels.c | 888 door_arg_t darg; in evch_door_deliver() local 897 darg.rbuf = (char *)&retval; in evch_door_deliver() 898 darg.rsize = sizeof (retval); in evch_door_deliver() 899 darg.data_ptr = (char *)ev; in evch_door_deliver() 900 darg.data_size = size; in evch_door_deliver() 901 darg.desc_ptr = NULL; in evch_door_deliver() 902 darg.desc_num = 0; in evch_door_deliver() 905 if ((error = door_ki_upcall_limited(sdp->sd_door, &darg, in evch_door_deliver()
|
H A D | zone.c | 6602 door_arg_t darg, save_arg; in zone_ki_call_zoneadmd() local 6633 darg.rbuf = (char *)&arg; in zone_ki_call_zoneadmd() 6634 darg.data_ptr = (char *)&arg; in zone_ki_call_zoneadmd() 6635 darg.rsize = size; in zone_ki_call_zoneadmd() 6636 darg.data_size = size; in zone_ki_call_zoneadmd() 6637 darg.desc_ptr = NULL; in zone_ki_call_zoneadmd() 6638 darg.desc_num = 0; in zone_ki_call_zoneadmd() 6640 save_arg = darg; in zone_ki_call_zoneadmd() 6653 if ((error = door_ki_upcall_limited(door, &darg, NULL, in zone_ki_call_zoneadmd() 6708 darg = save_arg; in zone_ki_call_zoneadmd()
|
/illumos-gate/usr/src/uts/common/io/dls/ |
H A D | dls_mgmt.c | 310 darg.data_ptr = arg; in i_dls_mgmt_upcall() 311 darg.data_size = asize; in i_dls_mgmt_upcall() 312 darg.desc_ptr = NULL; in i_dls_mgmt_upcall() 313 darg.desc_num = 0; in i_dls_mgmt_upcall() 314 darg.rbuf = rbuf; in i_dls_mgmt_upcall() 315 darg.rsize = rsize; in i_dls_mgmt_upcall() 316 save_arg = darg; in i_dls_mgmt_upcall() 337 darg = save_arg; in i_dls_mgmt_upcall() 372 if (darg.rbuf != rbuf) { in i_dls_mgmt_upcall() 378 kmem_free(darg.rbuf, darg.rsize); in i_dls_mgmt_upcall() [all …]
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | door.c | 1420 door_arg_t darg; in setup_mgmt_door() local 1425 darg.data_ptr = "<?xml version='1.0' encoding='UTF-8'?>" in setup_mgmt_door() 1430 darg.data_size = xmlStrlen((xmlChar *)darg.data_ptr) + 1; in setup_mgmt_door() 1431 darg.desc_ptr = NULL; in setup_mgmt_door() 1432 darg.desc_num = 0; in setup_mgmt_door() 1433 darg.rbuf = NULL; in setup_mgmt_door() 1434 darg.rsize = 0; in setup_mgmt_door() 1436 if (door_call(fd, &darg) == 0) { in setup_mgmt_door() 1441 if (darg.rsize > darg.data_size) { in setup_mgmt_door() 1442 (void) munmap(darg.rbuf, darg.rsize); in setup_mgmt_door()
|
/illumos-gate/usr/src/uts/common/fs/ |
H A D | fs_subr.c | 940 char *darg; in reparse_kderef() local 956 darg = kmem_alloc(dlen, KM_SLEEP); in reparse_kderef() 959 darg = buf; /* use same buffer for door's args & results */ in reparse_kderef() 964 (void) snprintf(darg, dlen, "%s:%s", svc_type, svc_data); in reparse_kderef() 967 door_args.data_ptr = darg; in reparse_kderef() 1006 kmem_free(darg, dlen); /* done with args buffer */ in reparse_kderef()
|
/illumos-gate/usr/src/cmd/picl/picld/ |
H A D | picld.c | 908 door_arg_t darg; in daemon_exists() local 936 darg.data_ptr = (char *)&req_ping; in daemon_exists() 937 darg.data_size = sizeof (picl_reqping_t); in daemon_exists() 938 darg.desc_ptr = NULL; in daemon_exists() 939 darg.desc_num = 0; in daemon_exists() 940 darg.rbuf = (char *)&ret_ping; in daemon_exists() 941 darg.rsize = sizeof (picl_retping_t); in daemon_exists() 943 if (door_call(doorh, &darg) < 0) { in daemon_exists()
|
/illumos-gate/usr/src/cmd/smserverd/ |
H A D | smediad.c | 2773 door_arg_t darg; in server_exists() local 2794 darg.data_ptr = (char *)&req_ping; in server_exists() 2795 darg.data_size = sizeof (smedia_reqping_t); in server_exists() 2796 darg.desc_ptr = NULL; in server_exists() 2797 darg.desc_num = 0; in server_exists() 2798 darg.rbuf = rbuf; in server_exists() 2799 darg.rsize = sizeof (rbuf); in server_exists() 2801 if (door_call(doorh, &darg) < 0) { in server_exists() 2805 ret_ping = (smedia_retping_t *)((void *)darg.data_ptr); in server_exists()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | mountd.c | 164 uint_t darg; in nfsauth_svc() local 206 darg = doorfd; in nfsauth_svc() 207 (void) _nfssys(MOUNTD_ARGS, &darg); in nfsauth_svc() 231 uint_t darg; in cmd_svc() local 242 darg = doorfd; in cmd_svc() 243 (void) _nfssys(NFSCMD_ARGS, &darg); in cmd_svc()
|
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | libzonecfg.c | 7752 door_arg_t darg; in zonecfg_call_zoneadmd() local 7793 darg.data_ptr = (char *)arg; in zonecfg_call_zoneadmd() 7794 darg.data_size = sizeof (*arg); in zonecfg_call_zoneadmd() 7795 darg.desc_ptr = NULL; in zonecfg_call_zoneadmd() 7796 darg.desc_num = 0; in zonecfg_call_zoneadmd() 7797 darg.rbuf = (char *)rvalp; in zonecfg_call_zoneadmd() 7798 darg.rsize = rlen; in zonecfg_call_zoneadmd() 7799 if (door_call(doorfd, &darg) != 0) { in zonecfg_call_zoneadmd() 7812 if (darg.data_size == 0) { in zonecfg_call_zoneadmd()
|