| /illumos-gate/usr/src/cmd/zonestat/zonestatd/ |
| H A D | zonestatd.c | 809 zsd_lookup_zone(zsd_ctl_t *ctl, char *zonename, zoneid_t zoneid) in zsd_lookup_zone() argument 813 for (zone = list_head(&ctl->zsctl_zones); zone != NULL; in zsd_lookup_zone() 814 zone = list_next(&ctl->zsctl_zones, zone)) { in zsd_lookup_zone() 825 zsd_lookup_zone_byid(zsd_ctl_t *ctl, zoneid_t zoneid) in zsd_lookup_zone_byid() argument 829 for (zone = list_head(&ctl->zsctl_zones); zone != NULL; in zsd_lookup_zone_byid() 830 zone = list_next(&ctl->zsctl_zones, zone)) { in zsd_lookup_zone_byid() 838 zsd_allocate_zone(zsd_ctl_t *ctl, char *zonename, zoneid_t zoneid) in zsd_allocate_zone() argument 872 ctl->zsctl_nzones++; in zsd_allocate_zone() 878 zsd_lookup_insert_zone(zsd_ctl_t *ctl, char *zonename, zoneid_t zoneid) in zsd_lookup_insert_zone() argument 882 if ((zone = zsd_lookup_zone(ctl, zonename, zoneid)) != NULL) in zsd_lookup_insert_zone() [all …]
|
| /illumos-gate/usr/src/uts/common/syscall/ |
| H A D | strcalls.c | 50 int getmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *flagsp); 51 int putmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int flags); 52 int getpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *prip, 54 int putpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int pri, 57 static int msgio(int fdes, struct strbuf *ctl, struct strbuf *data, int *rval, 61 getmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *flagsp) in getmsg() argument 87 if ((error = msgio(fdes, ctl, data, &rv, FREAD, &pri, in getmsg() 105 putmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int flags) in putmsg() argument 129 error = msgio(fdes, ctl, data, &rv, FWRITE, &pri, &realflags); in putmsg() 137 getpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *prip, in getpmsg() argument [all …]
|
| /illumos-gate/usr/src/uts/intel/dtrace/ |
| H A D | fbt.c | 141 fbt_provide_module(void *arg, struct modctl *ctl) in fbt_provide_module() argument 143 struct module *mp = ctl->mod_mp; in fbt_provide_module() 147 char *modname = ctl->mod_modname; in fbt_provide_module() 160 if (ctl->mod_requisites != NULL) { in fbt_provide_module() 163 list = (struct modctl_list *)ctl->mod_requisites; in fbt_provide_module() 303 fbt->fbtp_ctl = ctl; in fbt_provide_module() 304 fbt->fbtp_loadcnt = ctl->mod_loadcnt; in fbt_provide_module() 383 fbt->fbtp_ctl = ctl; in fbt_provide_module() 384 fbt->fbtp_loadcnt = ctl->mod_loadcnt; in fbt_provide_module() 409 struct modctl *ctl = fbt->fbtp_ctl; in fbt_destroy() local [all …]
|
| H A D | sdt.c | 101 sdt_provide_module(void *arg, struct modctl *ctl) in sdt_provide_module() argument 103 struct module *mp = ctl->mod_mp; in sdt_provide_module() 104 char *modname = ctl->mod_modname; in sdt_provide_module() 152 sdp->sdp_loadcnt = ctl->mod_loadcnt; in sdt_provide_module() 153 sdp->sdp_ctl = ctl; in sdt_provide_module() 198 struct modctl *ctl = sdp->sdp_ctl; in sdt_destroy() local 201 if (ctl != NULL && ctl->mod_loadcnt == sdp->sdp_loadcnt) { in sdt_destroy() 202 if ((ctl->mod_loadcnt == sdp->sdp_loadcnt && in sdt_destroy() 203 ctl->mod_loaded)) { in sdt_destroy() 204 ((struct module *)(ctl->mod_mp))->sdt_nprobes--; in sdt_destroy() [all …]
|
| /illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/ |
| H A D | ap_sbd.c | 47 sbd_ioctl_arg_t *ctl; in ap_getncm() local 50 if (a->fd == -1 || a->ctl == NULL) in ap_getncm() 53 ctl = (sbd_ioctl_arg_t *)a->ctl; in ap_getncm() 54 ctl->ic_type = type; in ap_getncm() 55 ctl->ic_name[0] = '\0'; in ap_getncm() 56 ctl->ic_unit = 0; in ap_getncm() 57 ctl->i_len = 0; in ap_getncm() 58 ctl->i_opts = NULL; in ap_getncm() 60 DBG("ioctl(%d SBD_CMD_GETNCM, 0x%p)\n", a->fd, (void *)ctl); in ap_getncm() 62 if (ioctl(a->fd, SBD_CMD_GETNCM, ctl) == -1) { in ap_getncm() [all …]
|
| /illumos-gate/usr/src/uts/common/io/chxge/com/ |
| H A D | mv88e1xxx.c | 74 u32 ctl; in mv88e1xxx_reset() local 80 (void) simple_mdio_read(cphy, MII_BMCR, &ctl); in mv88e1xxx_reset() 81 ctl &= BMCR_RESET; in mv88e1xxx_reset() 82 if (ctl) in mv88e1xxx_reset() 84 } while (ctl && --time_out); in mv88e1xxx_reset() 86 return ctl ? -1 : 0; in mv88e1xxx_reset() 153 u32 ctl; in mv88e1xxx_set_speed_duplex() local 155 (void) simple_mdio_read(phy, MII_BMCR, &ctl); in mv88e1xxx_set_speed_duplex() 157 ctl &= ~(BMCR_SPEED100 | BMCR_SPEED1000 | BMCR_ANENABLE); in mv88e1xxx_set_speed_duplex() 159 ctl |= BMCR_SPEED100; in mv88e1xxx_set_speed_duplex() [all …]
|
| /illumos-gate/usr/src/uts/common/io/ |
| H A D | sysevent.c | 157 evchan_ctl_t *ctl; in sysevent_publish() local 159 ctl = ddi_get_soft_state(evchan_ctlp, getminor(dev)); in sysevent_publish() 160 if (ctl == NULL || ctl->chp == NULL) in sysevent_publish() 193 return (evch_usrpostevent(ctl->chp, ev, uargs.flags)); in sysevent_publish() 207 evchan_ctl_t *ctl; in sysevent_chan_open() local 211 ctl = ddi_get_soft_state(evchan_ctlp, getminor(dev)); in sysevent_chan_open() 212 if (ctl == NULL) { in sysevent_chan_open() 239 ctl->chp = evch_usrchanopen((const char *)chan_name, in sysevent_chan_open() 256 evchan_ctl_t *ctl; in sysevent_chan_control() local 259 ctl = ddi_get_soft_state(evchan_ctlp, getminor(dev)); in sysevent_chan_control() [all …]
|
| /illumos-gate/usr/src/uts/sparc/dtrace/ |
| H A D | sdt.c | 127 sdt_provide_module(void *arg, struct modctl *ctl) in sdt_provide_module() argument 129 struct module *mp = ctl->mod_mp; in sdt_provide_module() 130 char *modname = ctl->mod_modname; in sdt_provide_module() 155 primary = vmem_contains(heap_arena, (void *)ctl, in sdt_provide_module() 212 sdp->sdp_loadcnt = ctl->mod_loadcnt; in sdt_provide_module() 214 sdp->sdp_ctl = ctl; in sdt_provide_module() 257 struct modctl *ctl = sdp->sdp_ctl; in sdt_destroy() local 259 if (ctl != NULL && ctl->mod_loadcnt == sdp->sdp_loadcnt) { in sdt_destroy() 260 if ((ctl->mod_loadcnt == sdp->sdp_loadcnt && in sdt_destroy() 261 ctl->mod_loaded) || sdp->sdp_primary) { in sdt_destroy() [all …]
|
| H A D | fbt.c | 998 fbt_provide_module(void *arg, struct modctl *ctl) in fbt_provide_module() argument 1000 struct module *mp = ctl->mod_mp; in fbt_provide_module() 1001 char *modname = ctl->mod_modname; in fbt_provide_module() 1025 if (ctl->mod_requisites != NULL) { in fbt_provide_module() 1028 list = (struct modctl_list *)ctl->mod_requisites; in fbt_provide_module() 1067 primary = vmem_contains(heap_arena, (void *)ctl, in fbt_provide_module() 1362 fbt->fbtp_ctl = ctl; in fbt_provide_module() 1380 fbt->fbtp_loadcnt = ctl->mod_loadcnt; in fbt_provide_module() 1408 fbt->fbtp_ctl = ctl; in fbt_provide_module() 1431 fbt->fbtp_loadcnt = ctl->mod_loadcnt; in fbt_provide_module() [all …]
|
| /illumos-gate/usr/src/lib/libc/i386/sys/ |
| H A D | ptrace.c | 151 } ctl; in ptrace() local 173 ctl.cmd = PCSTRACE; in ptrace() 174 prfillset(&ctl.arg.signals); in ptrace() 175 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sigset_t)) in ptrace() 178 ctl.cmd = PCSFAULT; in ptrace() 179 premptyset(&ctl.arg.faults); in ptrace() 180 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (fltset_t)) in ptrace() 183 ctl.cmd = PCSENTRY; in ptrace() 184 premptyset(&ctl.arg.syscalls); in ptrace() 185 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sysset_t)) in ptrace() [all …]
|
| /illumos-gate/usr/src/lib/libc/sparc/sys/ |
| H A D | ptrace.c | 153 } ctl; in ptrace() local 175 ctl.cmd = PCSTRACE; in ptrace() 176 prfillset(&ctl.arg.signals); in ptrace() 177 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sigset_t)) in ptrace() 180 ctl.cmd = PCSFAULT; in ptrace() 181 premptyset(&ctl.arg.faults); in ptrace() 182 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (fltset_t)) in ptrace() 185 ctl.cmd = PCSENTRY; in ptrace() 186 premptyset(&ctl.arg.syscalls); in ptrace() 187 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sysset_t)) in ptrace() [all …]
|
| /illumos-gate/usr/src/lib/libproc/common/ |
| H A D | proc_set.c | 73 } ctl; in Psetzoneid() local 78 ctl.zoneid = zoneid; in Psetzoneid() 79 ctl.cmd = PCSZONE; in Psetzoneid() 81 if (write(Pctlfd(Pr), &ctl, sizeof (ctl)) < 0) in Psetzoneid()
|
| H A D | Pcontrol.c | 1448 long *ctl; in Psetpriv() local 1460 ctl = malloc(sz); in Psetpriv() 1461 if (ctl == NULL) in Psetpriv() 1464 ctl[0] = PCSPRIV; in Psetpriv() 1466 (void) memcpy(&ctl[1], pprv, PRIV_PRPRIV_SIZE(pprv)); in Psetpriv() 1468 if (write(P->ctlfd, ctl, sz) != sz) in Psetpriv() 1473 free(ctl); in Psetpriv() 1906 long ctl[3]; in Pstopstatus() local 1938 ctl[0] = PCDSTOP; in Pstopstatus() 1939 ctl[1] = PCTWSTOP; in Pstopstatus() [all …]
|
| /illumos-gate/usr/src/cmd/lp/lib/msgs/ |
| H A D | mread.c | 69 struct strbuf ctl; local 90 ctl.buf = buff; 91 ctl.maxlen = sizeof (buff); 92 ctl.len = 0; 96 if (Getmsg(md, &ctl, &dat, &flag) < 0)
|
| H A D | mwrite.c | 164 struct strbuf ctl; in _mwrite() local 178 ctl.buf = "xyzzy"; in _mwrite() 179 ctl.maxlen = ctl.len = strlen(ctl.buf)+1; in _mwrite() 185 if (Putmsg(md, &ctl, &dat, flag) == 0) in _mwrite()
|
| /illumos-gate/usr/src/uts/common/inet/ipf/ |
| H A D | ip_proxy.c | 223 int appr_ctl(ctl, ifs) in appr_ctl() argument 224 ap_ctl_t *ctl; in appr_ctl() 230 a = appr_lookup(ctl->apc_p, ctl->apc_label, ifs); 234 ctl->apc_label, ctl->apc_p); 239 ctl->apc_label, ctl->apc_p); 242 error = (*a->apr_ctl)(a, ctl, a->apr_private); 307 ap_ctl_t ctl; local 316 error = BCOPYIN(data, &ctl, sizeof(ctl)); 322 if (ctl.apc_dsize > 0) { 323 KMALLOCS(ptr, caddr_t, ctl.apc_dsize); [all …]
|
| /illumos-gate/usr/src/cmd/streams/log/ |
| H A D | strclean.c | 61 struct strbuf ctl, dat; in main() local 115 ctl.len = sizeof (struct log_ctl); in main() 116 ctl.maxlen = sizeof (struct log_ctl); in main() 117 ctl.buf = (caddr_t)&lctl; in main() 127 putmsg(fd, &ctl, &dat, 0); in main()
|
| H A D | strace.c | 179 struct strbuf ctl, dat; in main() local 187 ctl.buf = cbuf; in main() 188 ctl.maxlen = CTLSIZE; in main() 227 while (getmsg(log, &ctl, &dat, &flag) >= 0) { in main()
|
| /illumos-gate/usr/src/uts/common/io/arn/ |
| H A D | arn_regd.c | 434 uint8_t ctl, in ath9k_regd_add_channel() argument 594 chan->conformanceTestLimit[0] = ctl; in ath9k_regd_add_channel() 596 chan->conformanceTestLimit[1] = ctl; in ath9k_regd_add_channel() 598 chan->conformanceTestLimit[2] = ctl; in ath9k_regd_add_channel() 649 uint8_t ctl; in ath9k_regd_init_channels() local 791 ctl = rd->conformanceTestLimit; in ath9k_regd_init_channels() 797 ctl = rd->conformanceTestLimit | CTL_11B; in ath9k_regd_init_channels() 806 ctl = rd->conformanceTestLimit | CTL_11G; in ath9k_regd_init_channels() 866 maxChan, ctl, in ath9k_regd_init_channels() 999 uint32_t ctl = NO_CTL; in ath9k_regd_get_ctl() local [all …]
|
| /illumos-gate/usr/src/cmd/bhyve/common/ |
| H A D | pci_virtio_scsi_ctl.c | 174 struct vtscsi_ctl_backend *ctl = (struct vtscsi_ctl_backend *)sc; in vtscsi_ctl_req_alloc() local 175 union ctl_io *io = ctl_scsi_alloc_io(ctl->vcb_iid); in vtscsi_ctl_req_alloc() 197 struct vtscsi_ctl_backend *ctl; in vtscsi_ctl_tmf_hdl() local 201 ctl = (struct vtscsi_ctl_backend *)sc->vss_backend; in vtscsi_ctl_tmf_hdl() 211 io->io_hdr.nexus.initid = ctl->vcb_iid; in vtscsi_ctl_tmf_hdl() 283 struct vtscsi_ctl_backend *ctl; in vtscsi_ctl_req_hdl() local 286 ctl = (struct vtscsi_ctl_backend *)sc->vss_backend; in vtscsi_ctl_req_hdl() 288 io->io_hdr.nexus.initid = ctl->vcb_iid; in vtscsi_ctl_req_hdl()
|
| /illumos-gate/usr/src/lib/watchmalloc/common/ |
| H A D | malloc.c | 1341 } ctl; in init_watch() local 1347 premptyset(&ctl.fltset); in init_watch() 1351 ctl.fltset = pstatus.pr_flttrace; in init_watch() 1354 praddset(&ctl.fltset, FLTWATCH); in init_watch() 1355 ctl.cmd = PCSFAULT; in init_watch() 1356 (void) write(ctlfd, &ctl, sizeof (ctl)); in init_watch() 1403 ctl_t ctl; in protect() local 1417 ctl.cmd = PCWATCH; in protect() 1418 ctl.prwatch.pr_vaddr = (uintptr_t)tp; in protect() 1419 ctl.prwatch.pr_size = size + WORDSIZE; in protect() [all …]
|
| /illumos-gate/usr/src/lib/librpcsvc/common/ |
| H A D | bindresvport.c | 107 struct strbuf ctl[1], data[1]; local 112 ctl->maxlen = sizeof (ctlbuf); 113 ctl->buf = ctlbuf; 117 if (getmsg(fd, ctl, data, &flags) < 0)
|
| /illumos-gate/usr/src/cmd/bhyvectl/ |
| H A D | bhyvectl.c | 703 uint64_t ctl, cr0, cr3, cr4, rsp, rip, pat, addr, u64; in get_misc_vmcs() local 780 error = vm_get_vmcs_field(vcpu, VMCS_PIN_BASED_CTLS, &ctl); in get_misc_vmcs() 782 printf("pinbased_ctls[%d]\t0x%016lx\n", vcpuid, ctl); in get_misc_vmcs() 787 VMCS_PRI_PROC_BASED_CTLS, &ctl); in get_misc_vmcs() 789 printf("procbased_ctls[%d]\t0x%016lx\n", vcpuid, ctl); in get_misc_vmcs() 794 VMCS_SEC_PROC_BASED_CTLS, &ctl); in get_misc_vmcs() 796 printf("procbased_ctls2[%d]\t0x%016lx\n", vcpuid, ctl); in get_misc_vmcs() 841 error = vm_get_vmcs_field(vcpu, VMCS_EXIT_CTLS, &ctl); in get_misc_vmcs() 843 printf("exit_ctls[%d]\t\t0x%016lx\n", vcpuid, ctl); in get_misc_vmcs() 847 error = vm_get_vmcs_field(vcpu, VMCS_ENTRY_CTLS, &ctl); in get_misc_vmcs() [all …]
|
| /illumos-gate/usr/src/cmd/mdb/common/mdb/ |
| H A D | mdb_kvm.c | 123 kt_adjust_module(const struct modctl *ctl, struct module *kmod) in kt_adjust_module() argument 137 if (kmod->text == ctl->mod_text && in kt_adjust_module() 138 kmod->text_size == ctl->mod_text_size) { in kt_adjust_module() 145 if (kmod->text != ctl->mod_text || in kt_adjust_module() 146 kmod->text_size != ctl->mod_text_size) { in kt_adjust_module() 148 (void *)ctl->mod_mp); in kt_adjust_module() 166 struct modctl ctl; in kt_load_modules() local 178 if (mdb_tgt_readsym(t, MDB_TGT_AS_VIRT, &ctl, sizeof (ctl), in kt_load_modules() 179 MDB_TGT_OBJ_EXEC, "modules") != sizeof (ctl)) { in kt_load_modules() 190 if (mdb_tgt_vread(t, &ctl, sizeof (ctl), addr) == -1) { in kt_load_modules() [all …]
|
| /illumos-gate/usr/src/boot/i386/libi386/ |
| H A D | biosmem.c | 101 v86.ctl = V86_FLAGS; in bios_getmem() 155 v86.ctl = 0; in bios_getmem() 168 v86.ctl = V86_FLAGS; in bios_getmem() 200 v86.ctl = 0; in bios_getmem()
|