/opensolaris-onvv-gate/usr/src/lib/libproc/common/ |
H A D | proc_set.c | 75 } ctl; local 80 ctl.zoneid = zoneid; 81 ctl.cmd = PCSZONE; 83 if (write(Pctlfd(Pr), &ctl, sizeof (ctl)) < 0)
|
H A D | Pcontrol.c | 286 (void) strcpy(fname, "ctl"); 625 (void) strcpy(fname, "ctl"); 1176 long *ctl; local 1188 ctl = malloc(sz); 1189 if (ctl == NULL) 1192 ctl[0] = PCSPRIV; 1194 (void) memcpy(&ctl[1], pprv, PRIV_PRPRIV_SIZE(pprv)); 1196 if (write(P->ctlfd, ctl, sz) != sz) 1201 free(ctl); 1331 (void) strcpy(fname, "ctl"); 1632 long ctl[3]; local 1899 long ctl[1 + /* PCCFAULT */ local 2026 long ctl = PCCSIG; local 2038 long ctl = PCCFAULT; local 2051 long ctl[1 + sizeof (priovec_t) / sizeof (long) + /* PCREAD */ local 2144 long ctl[ local 2272 long ctl[1 + sizeof (prwatch_t) / sizeof (long)]; local 2298 long ctl[1 + sizeof (prwatch_t) / sizeof (long)]; local 2330 long ctl[ local 2463 long ctl[2]; local 2483 long ctl[2]; local 3225 long ctl[3]; local 3427 long ctl[1 + /* PCCFAULT */ local 3482 long ctl = PCCSIG; local 3494 long ctl = PCCFAULT; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/zonestat/zonestatd/ |
H A D | zonestatd.c | 729 fd = contract_open(ctid, "all", "ctl", O_WRONLY); 811 zsd_lookup_zone(zsd_ctl_t *ctl, char *zonename, zoneid_t zoneid) argument 815 for (zone = list_head(&ctl->zsctl_zones); zone != NULL; 816 zone = list_next(&ctl->zsctl_zones, zone)) { 827 zsd_lookup_zone_byid(zsd_ctl_t *ctl, zoneid_t zoneid) argument 831 for (zone = list_head(&ctl->zsctl_zones); zone != NULL; 832 zone = list_next(&ctl->zsctl_zones, zone)) { 840 zsd_allocate_zone(zsd_ctl_t *ctl, char *zonename, zoneid_t zoneid) argument 874 ctl->zsctl_nzones++; 880 zsd_lookup_insert_zone(zsd_ctl_t *ctl, cha argument 905 zsd_mark_zones_start(zsd_ctl_t *ctl) argument 941 zsd_mark_psets_start(zsd_ctl_t *ctl) argument 1037 zsd_add_usage(zsd_ctl_t *ctl, zsd_pset_usage_t *usage, timestruc_t *delta) argument 1051 zsd_mark_psets_end(zsd_ctl_t *ctl) argument 1083 zsd_mark_pset_usages_end(zsd_ctl_t *ctl) argument 1134 zsd_mark_zone_found(zsd_ctl_t *ctl, zsd_zone_t *zone, uint64_t cpu_shares, uint64_t cpu_cap, uint64_t ram_cap, uint64_t locked_cap, uint64_t vm_cap, uint64_t processes_cap, uint64_t processes, uint64_t lwps_cap, uint64_t lwps, uint64_t shm_cap, uint64_t shm, uint64_t shmids_cap, uint64_t shmids, uint64_t semids_cap, uint64_t semids, uint64_t msgids_cap, uint64_t msgids, uint64_t lofi_cap, uint64_t lofi, char *poolname, char *psetname, uint_t sched, uint_t cputype, uint_t iptype) argument 1210 zsd_mark_zones_end(zsd_ctl_t *ctl) argument 1252 zsd_mark_cpus_start(zsd_ctl_t *ctl, boolean_t roll) argument 1278 zsd_lookup_insert_cpu(zsd_ctl_t *ctl, processorid_t cpuid) argument 1333 zsd_mark_cpus_end(zsd_ctl_t *ctl) argument 1376 zsd_lookup_pset_byid(zsd_ctl_t *ctl, psetid_t psetid) argument 1389 zsd_lookup_pset(zsd_ctl_t *ctl, char *psetname, psetid_t psetid) argument 1405 zsd_allocate_pset(zsd_ctl_t *ctl, char *psetname, psetid_t psetid) argument 1432 zsd_lookup_insert_pset(zsd_ctl_t *ctl, char *psetname, psetid_t psetid) argument 1466 zsd_allocate_pset_usage(zsd_ctl_t *ctl, zsd_pset_t *pset, zsd_zone_t *zone) argument 1500 zsd_lookup_insert_usage(zsd_ctl_t *ctl, zsd_pset_t *pset, zsd_zone_t *zone) argument 1521 zsd_refresh_system(zsd_ctl_t *ctl) argument 1538 zsd_update_cpu_stats(zsd_ctl_t *ctl, zsd_cpu_t *cpu) argument 1667 zsd_get_pool_pset(zsd_ctl_t *ctl, psetid_t psetid, char *psetname, size_t namelen, uint_t *cputype, uint64_t *online, uint64_t *size, uint64_t *min, uint64_t *max, int64_t *importance) argument 1874 zsd_refresh_psets(zsd_ctl_t *ctl) argument 2040 zsd_get_zone_pool_pset(zsd_ctl_t *ctl, zsd_zone_t *zone, char *pool, int poollen, char *pset, int psetlen, uint_t *cputype) argument 2201 zsd_get_zone_caps(zsd_ctl_t *ctl, zsd_zone_t *zone, uint64_t *cpu_shares, uint64_t *cpu_cap, uint64_t *ram_cap, uint64_t *locked_cap, uint64_t *vm_cap, uint64_t *processes_cap, uint64_t *processes, uint64_t *lwps_cap, uint64_t *lwps, uint64_t *shm_cap, uint64_t *shm, uint64_t *shmids_cap, uint64_t *shmids, uint64_t *semids_cap, uint64_t *semids, uint64_t *msgids_cap, uint64_t *msgids, uint64_t *lofi_cap, uint64_t *lofi, uint_t *sched) argument 2376 zsd_refresh_zones(zsd_ctl_t *ctl) argument 2468 zsd_get_proc_info(zsd_ctl_t *ctl, psinfo_t *psinfo, psetid_t *psetid, psetid_t *prev_psetid, zoneid_t *zoneid, zoneid_t *prev_zoneid, timestruc_t *delta, uint_t *sched) argument 2523 zsd_open_exacct(zsd_ctl_t *ctl, boolean_t init) argument 2618 zsd_refresh_procs(zsd_ctl_t *ctl, boolean_t init) argument 3156 zsd_getvmusage(zsd_ctl_t *ctl, uint_t flags, time_t age, zsd_vmusage64_t *buf, uint64_t *nres) argument 3211 zsd_refresh_memory(zsd_ctl_t *ctl, boolean_t init) argument 3561 zsd_refresh_cpu_stats(zsd_ctl_t *ctl, boolean_t init) argument 3695 zsd_usage_cache_update(zsd_ctl_t *ctl) argument 3919 zsd_close(zsd_ctl_t *ctl) argument 3982 zsd_read(zsd_ctl_t *ctl, boolean_t init, boolean_t do_memory) argument 4051 zsd_open(zsd_ctl_t *ctl) argument [all...] |
/opensolaris-onvv-gate/usr/src/uts/common/syscall/ |
H A D | strcalls.c | 53 int getmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *flagsp); 54 int putmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int flags); 55 int getpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *prip, 57 int putpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int pri, 60 static int msgio(int fdes, struct strbuf *ctl, struct strbuf *data, int *rval, 64 getmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *flagsp) argument 90 if ((error = msgio(fdes, ctl, data, &rv, FREAD, &pri, 108 putmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int flags) argument 132 error = msgio(fdes, ctl, data, &rv, FWRITE, &pri, &realflags); 140 getpmsg(int fdes, struct strbuf *ctl, struc argument 168 putpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int intpri, int flags) argument 190 msgio(int fdes, struct strbuf *ctl, struct strbuf *data, int *rval, int mode, unsigned char *prip, int *flagsp) argument 293 getmsg32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int32_t *flagsp) argument 337 putmsg32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int32_t flags) argument 369 getpmsg32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int32_t *prip, int32_t *flagsp) argument 397 putpmsg32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int32_t intpri, int32_t flags) argument 419 msgio32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int *rval, int mode, unsigned char *prip, int *flagsp) argument [all...] |
/opensolaris-onvv-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 | 166 struct strbuf ctl; local 180 ctl.buf = "xyzzy"; 181 ctl.maxlen = ctl.len = strlen(ctl.buf)+1; 187 if (Putmsg(md, &ctl, &dat, flag) == 0)
|
/opensolaris-onvv-gate/usr/src/uts/common/io/chxge/com/ |
H A D | mv88e1xxx.c | 76 u32 ctl; local 82 (void) simple_mdio_read(cphy, MII_BMCR, &ctl); 83 ctl &= BMCR_RESET; 84 if (ctl) 86 } while (ctl && --time_out); 88 return ctl ? -1 : 0; 155 u32 ctl; local 157 (void) simple_mdio_read(phy, MII_BMCR, &ctl); 159 ctl &= ~(BMCR_SPEED100 | BMCR_SPEED1000 | BMCR_ANENABLE); 161 ctl | 189 u32 ctl; local 202 u32 ctl; local [all...] |
/opensolaris-onvv-gate/usr/src/uts/common/io/ |
H A D | sysevent.c | 157 evchan_ctl_t *ctl; local 159 ctl = ddi_get_soft_state(evchan_ctlp, getminor(dev)); 160 if (ctl == NULL || ctl->chp == NULL) 193 return (evch_usrpostevent(ctl->chp, ev, uargs.flags)); 207 evchan_ctl_t *ctl; local 211 ctl = ddi_get_soft_state(evchan_ctlp, getminor(dev)); 212 if (ctl == NULL) { 239 ctl->chp = evch_usrchanopen((const char *)chan_name, 256 evchan_ctl_t *ctl; local 293 evchan_ctl_t *ctl; local 353 evchan_ctl_t *ctl; local 479 evchan_ctl_t *ctl; local 524 evchan_ctl_t *ctl; local 658 evchan_ctl_t *ctl; local [all...] |
/opensolaris-onvv-gate/usr/src/lib/cfgadm_plugins/sbd/common/ |
H A D | ap_sbd.c | 47 sbd_ioctl_arg_t *ctl; local 50 if (a->fd == -1 || a->ctl == NULL) 53 ctl = (sbd_ioctl_arg_t *)a->ctl; 54 ctl->ic_type = type; 55 ctl->ic_name[0] = '\0'; 56 ctl->ic_unit = 0; 57 ctl->i_len = 0; 58 ctl->i_opts = NULL; 60 DBG("ioctl(%d SBD_CMD_GETNCM, 0x%p)\n", a->fd, (void *)ctl); 86 sbd_ioctl_arg_t *ctl; local 531 sbd_ioctl_arg_t *ctl; local 652 sbd_ioctl_arg_t *ctl = (sbd_ioctl_arg_t *)a->ctl; local 688 sbd_ioctl_arg_t ctl; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/streams/log/ |
H A D | strclean.c | 61 struct strbuf ctl, dat; local 115 ctl.len = sizeof (struct log_ctl); 116 ctl.maxlen = sizeof (struct log_ctl); 117 ctl.buf = (caddr_t)&lctl; 127 putmsg(fd, &ctl, &dat, 0);
|
H A D | strace.c | 181 struct strbuf ctl, dat; local 189 ctl.buf = cbuf; 190 ctl.maxlen = CTLSIZE; 229 while (getmsg(log, &ctl, &dat, &flag) >= 0) {
|
H A D | strerr.c | 107 struct strbuf ctl; local 116 ctl.buf = cbuf; 117 ctl.maxlen = CTLSIZE; 148 while (getmsg(fd, &ctl, &dat, &flag) >= 0) {
|
/opensolaris-onvv-gate/usr/src/uts/intel/dtrace/ |
H A D | fbt.c | 149 fbt_provide_module(void *arg, struct modctl *ctl) argument 151 struct module *mp = ctl->mod_mp; 155 char *modname = ctl->mod_modname; 168 if (ctl->mod_requisites != NULL) { 171 list = (struct modctl_list *)ctl->mod_requisites; 322 fbt->fbtp_ctl = ctl; 323 fbt->fbtp_loadcnt = ctl->mod_loadcnt; 412 fbt->fbtp_ctl = ctl; 413 fbt->fbtp_loadcnt = ctl->mod_loadcnt; 450 struct modctl *ctl local 493 struct modctl *ctl = fbt->fbtp_ctl; local 533 struct modctl *ctl = fbt->fbtp_ctl; local 550 struct modctl *ctl = fbt->fbtp_ctl; local 566 struct modctl *ctl = fbt->fbtp_ctl; local 582 struct modctl *ctl = fbt->fbtp_ctl; local [all...] |
H A D | sdt.c | 98 sdt_provide_module(void *arg, struct modctl *ctl) argument 100 struct module *mp = ctl->mod_mp; 101 char *modname = ctl->mod_modname; 149 sdp->sdp_loadcnt = ctl->mod_loadcnt; 150 sdp->sdp_ctl = ctl; 193 struct modctl *ctl = sdp->sdp_ctl; local 196 if (ctl != NULL && ctl->mod_loadcnt == sdp->sdp_loadcnt) { 197 if ((ctl->mod_loadcnt == sdp->sdp_loadcnt && 198 ctl 236 struct modctl *ctl = sdp->sdp_ctl; local 280 struct modctl *ctl = sdp->sdp_ctl; local [all...] |
/opensolaris-onvv-gate/usr/src/uts/sparc/dtrace/ |
H A D | sdt.c | 124 sdt_provide_module(void *arg, struct modctl *ctl) argument 126 struct module *mp = ctl->mod_mp; 127 char *modname = ctl->mod_modname; 152 primary = vmem_contains(heap_arena, (void *)ctl, 209 sdp->sdp_loadcnt = ctl->mod_loadcnt; 211 sdp->sdp_ctl = ctl; 254 struct modctl *ctl = sdp->sdp_ctl; local 256 if (ctl != NULL && ctl->mod_loadcnt == sdp->sdp_loadcnt) { 257 if ((ctl 276 struct modctl *ctl = sdp->sdp_ctl; local 321 struct modctl *ctl = sdp->sdp_ctl; local [all...] |
H A D | fbt.c | 998 fbt_provide_module(void *arg, struct modctl *ctl) argument 1000 struct module *mp = ctl->mod_mp; 1001 char *modname = ctl->mod_modname; 1025 if (ctl->mod_requisites != NULL) { 1028 list = (struct modctl_list *)ctl->mod_requisites; 1067 primary = vmem_contains(heap_arena, (void *)ctl, 1362 fbt->fbtp_ctl = ctl; 1380 fbt->fbtp_loadcnt = ctl->mod_loadcnt; 1408 fbt->fbtp_ctl = ctl; 1431 fbt->fbtp_loadcnt = ctl 1468 struct modctl *ctl = fbt->fbtp_ctl; local 1490 struct modctl *ctl = fbt->fbtp_ctl; local 1550 struct modctl *ctl = fbt->fbtp_ctl; local 1573 struct modctl *ctl = fbt->fbtp_ctl; local 1592 struct modctl *ctl = fbt->fbtp_ctl; local 1611 struct modctl *ctl = fbt->fbtp_ctl; local [all...] |
/opensolaris-onvv-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | send.c | 84 struct strbuf ctl; local 128 ctl.maxlen = sizeof (struct log_ctl); 129 ctl.len = sizeof (struct log_ctl); 130 ctl.buf = (caddr_t)&hdr; 140 if (_putmsg(s, &ctl, &dat, 0) == 0)
|
/opensolaris-onvv-gate/usr/src/lib/libc/i386/sys/ |
H A D | ptrace.c | 71 int ctlfd; /* /proc/<pid>/ctl */ 153 } ctl; local 168 char procname[64]; /* /proc/<pid>/ctl */ 172 (void) strcat(procname, "/ctl"); 175 ctl.cmd = PCSTRACE; 176 prfillset(&ctl.arg.signals); 177 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sigset_t)) 180 ctl.cmd = PCSFAULT; 181 premptyset(&ctl.arg.faults); 182 if (write(fd, (char *)&ctl, sizeo 537 long ctl[2]; local [all...] |
/opensolaris-onvv-gate/usr/src/lib/libc/sparc/sys/ |
H A D | ptrace.c | 71 int ctlfd; /* /proc/<pid>/ctl */ 153 } ctl; local 168 char procname[64]; /* /proc/<pid>/ctl */ 172 (void) strcat(procname, "/ctl"); 175 ctl.cmd = PCSTRACE; 176 prfillset(&ctl.arg.signals); 177 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sigset_t)) 180 ctl.cmd = PCSFAULT; 181 premptyset(&ctl.arg.faults); 182 if (write(fd, (char *)&ctl, sizeo 545 long ctl[2]; local [all...] |
/opensolaris-onvv-gate/usr/src/lib/libast/common/sfio/ |
H A D | _sfopen.c | 79 int ctl = sysfcntlf(f->file, F_GETFL, 0); local 80 ctl = (ctl & ~(O_TEXT|O_BINARY|O_APPEND)) | oflags; 81 sysfcntlf(f->file, F_SETFL, ctl);
|
/opensolaris-onvv-gate/usr/src/lib/librpcsvc/common/ |
H A D | bindresvport.c | 108 struct strbuf ctl[1], data[1]; local 113 ctl->maxlen = sizeof (ctlbuf); 114 ctl->buf = ctlbuf; 118 if (getmsg(fd, ctl, data, &flags) < 0)
|
/opensolaris-onvv-gate/usr/src/cmd/mdb/sun4u/modules/unix/ |
H A D | unix.c | 515 TRAP_TRACE_CTL *ctls, *ctl; local 531 for (ctl = &ctls[0], i = 0; i < ncpu; i++, ctl++) { 532 if (ctl->d.vaddr_base == 0) 537 mdb_printf(" vaddr_base = 0x%lx\n", (long)ctl->d.vaddr_base); 538 mdb_printf(" last_offset = 0x%x\n", ctl->d.last_offset); 539 mdb_printf(" offset = 0x%x\n", ctl->d.offset); 540 mdb_printf(" limit = 0x%x\n", ctl->d.limit); 541 mdb_printf(" paddr_base = 0x%llx\n", ctl->d.paddr_base); 542 mdb_printf(" asi = 0x%02x\n}\n", ctl 673 TRAP_TRACE_CTL *ctls, *ctl; local 861 TRAP_TRACE_CTL *ctls, *ctl; local 961 TRAP_TRACE_CTL *ctls, *ctl; local [all...] |
/opensolaris-onvv-gate/usr/src/uts/common/inet/ipf/ |
H A D | ip_proxy.c | 223 int appr_ctl(ctl, ifs) 224 ap_ctl_t *ctl; 230 a = appr_lookup(ctl->apc_p, ctl->apc_label, ifs); 234 ctl->apc_label, ctl->apc_p); 238 printf("appr_ctl: no ctl function for %s/%d\n", 239 ctl->apc_label, ctl->apc_p); 242 error = (*a->apr_ctl)(a, ctl, 307 ap_ctl_t ctl; local [all...] |
/opensolaris-onvv-gate/usr/src/uts/common/io/arn/ |
H A D | arn_regd.c | 434 uint8_t ctl, 594 chan->conformanceTestLimit[0] = ctl; 596 chan->conformanceTestLimit[1] = ctl; 598 chan->conformanceTestLimit[2] = ctl; 649 uint8_t ctl; local 791 ctl = rd->conformanceTestLimit; 797 ctl = rd->conformanceTestLimit | CTL_11B; 806 ctl = rd->conformanceTestLimit | CTL_11G; 866 maxChan, ctl, 999 uint32_t ctl local 428 ath9k_regd_add_channel( struct ath_hal *ah, uint16_t c, uint16_t c_lo, uint16_t c_hi, uint16_t maxChan, uint8_t ctl, int pos, struct regDomain rd5GHz, struct RegDmnFreqBand *fband, struct regDomain *rd, const struct cmode *cm, struct ath9k_channel *ichans, boolean_t enableExtendedChannels) argument [all...] |
/opensolaris-onvv-gate/usr/src/common/ctf/ |
H A D | ctf_labels.c | 32 extract_label_info(ctf_file_t *fp, const ctf_lblent_t **ctl, uint_t *num_labels) argument 45 *ctl = (const ctf_lblent_t *)(fp->ctf_buf + h->cth_lbloff);
|