/illumos-gate/usr/src/tools/ctf/cvt/ |
H A D | dwarf.c | 658 tdesc_intr_clone(dwarf_t *dw, tdesc_t *old, size_t bitsz) argument 662 if (!(old->t_flags & TDESC_F_RESOLVED)) { 664 "unresolved type\n", old->t_id); 667 new->t_name = xstrdup(old->t_name); 668 new->t_size = old->t_size; 674 bcopy(old->t_intr, new->t_intr, sizeof (intr_t)); 1067 const char *old = tdesc_name(tdp); local 1068 size_t newsz = 7 + strlen(old) + 1; 1070 (void) snprintf(new, newsz, "orphan %s", old); 1072 debug(3, "die %llu: worked around %s %s\n", off, typename, old); [all...] |
/illumos-gate/usr/src/ucbcmd/tset/ |
H A D | tset.c | 56 * Actually, this doesn't work in old csh's. 102 * dependent. This replaces the old -d, -p flags. 396 char *NewType; /* mapping identifier based on old flags */ 1174 reportek(char *name, char new, char old, char def) argument 1185 o = old;
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | clock.c | 552 /* jump to new max, or decay the old max */ 825 time = gethrestime_sec(); /* for crusty old kmem readers */ 1661 uint16_t old, new; local 1672 if (fuword16(slot, &old) < 0 || 1673 (new = old + ticks) > SHRT_MAX ||
|
H A D | contract.c | 1646 * active template. Frees the old active template, if there was one. 1653 ct_template_t *old; local 1656 old = curlwp->lwp_ct_active[template->ctmpl_type->ct_type_index]; 1660 if (old) 1661 ctmpl_free(old); 1719 * by a contract type's ctop_dup template op. Returns with the old 1724 ctmpl_copy(ct_template_t *new, ct_template_t *old) argument 1727 mutex_enter(&old->ctmpl_lock); 1728 new->ctmpl_ops = old->ctmpl_ops; 1729 new->ctmpl_type = old 2498 ct_kevent_t *old; local [all...] |
H A D | lgrp.c | 533 * given) or change all lgroups with old latency to new latency 678 * Update any lgroups with old latency to new latency 2720 int64_t old, new, f; local 2763 old = new = lpl->lpl_loadavg; 2764 q = (old >> 16) << 7; 2765 r = (old & 0xffff) << 7; 2777 old, new) != old); 2787 old = new = lpl->lpl_loadavg; 2793 if (new < old) 3265 lgrp_load_t old, new; local [all...] |
H A D | dumpsubr.c | 549 dumpcfg_t *old = &dumpcfg; local 550 dumpcfg_t newcfg = *old; 558 if (old->helper != NULL) { 561 hpend = &old->helper[old->nhelper]; 562 for (hp = old->helper; hp != hpend; hp++) { 568 kmem_free(old->helper, old->nhelper * sizeof (helper_t)); 571 cpend = &old->cmap[old [all...] |
/illumos-gate/usr/src/uts/common/io/lvm/mirror/ |
H A D | mirror_resync.c | 2297 * mirror owner. When we swich ownership, we block the old owner and unblock 3438 * Now translate the old records into the new 3480 /* Save the old record id */ 3505 uchar_t *old; local 3539 /* Copy the old bm over the new bm */ 3543 * Create new bigger incore arrays, copy, and free old ones: 3551 old = un->un_goingdirty_bm; 3553 bcopy((caddr_t)old, (caddr_t)un->un_goingdirty_bm, old_bm_size); 3554 kmem_free((caddr_t)old, old_bm_size); 3556 old [all...] |
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | synch.c | 194 * but for the sake of old broken applications that 299 * Return the old value of the lock word. 304 uint32_t old; local 308 old = *lockword; 309 new = old & ~LOCKMASK; 310 } while (atomic_cas_32(lockword, old, new) != old); 312 return (old); 322 uint64_t old; local 326 old 358 uint64_t old; local 376 uint32_t old; local 396 uint32_t old; local [all...] |
/illumos-gate/usr/src/cmd/smbsrv/smbstat/ |
H A D | smbstat.c | 1308 smbstat_hrtime_delta(hrtime_t old, hrtime_t new) argument 1312 if ((new >= old) && (old >= 0L)) 1313 return ((double)(new - old)); 1319 * The new value is negative. Handle the case where the old 1326 if (old > 0L) 1327 return ((double)(n1 - old)); 1329 o1 = -old; 1337 * the old entry. This implies we waited quite a few days on a very fast 1340 if (old < [all...] |
/illumos-gate/usr/src/uts/common/io/comstar/port/fct/ |
H A D | fct.c | 1856 uint32_t old, new; local 1860 old = iport->iport_next_free_slot; 1861 cmd_slot = old & 0xFFFF; 1868 new = ((old + (0x10000)) & 0xFFFF0000); 1870 } while (atomic_cas_32(&iport->iport_next_free_slot, old, new) != old); 1947 uint32_t old, new; local 1959 old = new = icmd->icmd_flags; 1960 if (old & ICMD_BEING_ABORTED) { 1964 } while (atomic_cas_32(&icmd->icmd_flags, old, ne 1997 uint32_t old, new; local 2042 uint32_t old, new; local 2151 uint32_t old, new; local 2879 uint32_t old, new; local 3047 uint32_t old, new; local 3081 uint32_t old, new; local [all...] |
/illumos-gate/usr/src/uts/common/xen/os/ |
H A D | xvdi.c | 2137 RING_IDX old, new, reqevt; local 2145 old = ddi_get32(ringp->xr_acc_hdl, &frp->sring->req_prod); 2150 return ((RING_IDX)(new - reqevt) < (RING_IDX)(new - old)); 2186 RING_IDX old, new, rspevt; local 2194 old = ddi_get32(ringp->xr_acc_hdl, &brp->sring->rsp_prod); 2199 return ((RING_IDX)(new - rspevt) < (RING_IDX)(new - old));
|
/illumos-gate/usr/src/cmd/stat/iostat/ |
H A D | iostat.c | 570 struct iodev_snapshot *old = (struct iodev_snapshot *)v1; local 615 if (old) { 616 t_delta = hrtime_delta(old->is_snaptime, 629 if (!old) { 642 udeltas = u32_delta(old ? old->is_stats.reads : 0, 648 udeltas = u32_delta(old ? old->is_stats.writes : 0, 665 ldeltas = ull_delta(old ? old 1727 ull_delta(u_longlong_t old, u_longlong_t new) argument 1741 u32_delta(uint_t old, uint_t new) argument [all...] |
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_anon.c | 694 * Yes, we're converting to a two level. Reuse old level 1 696 * alloc a new level 2 and copy the old level 1 data into it. 1338 * that *old actually refers to. 1341 anon_dup(struct anon_hdr *old, ulong_t old_idx, struct anon_hdr *new, argument 1353 if ((ap = anon_get_next_ptr(old, &index)) == NULL) 1356 ASSERT(!ANON_ISBUSY(anon_get_slot(old, index))); 1379 * empty in the old array it will skip it. If there are 1 or more valid slots 1380 * in the large page region of the old array it will make sure to fill in any 1387 struct anon_hdr *old, 1419 if (anon_get_next_ptr(old, 1386 anon_dup_fill_holes( struct anon_hdr *old, ulong_t old_idx, struct anon_hdr *new, ulong_t new_idx, size_t size, uint_t szc, int noalloc) argument 1595 ulong_t old; local 2407 struct anon *old = *app; local [all...] |
/illumos-gate/usr/src/common/ficl/ |
H A D | primitives.c | 2965 * restore old setjmp vector and push a zero. 3055 void *new, *old; local 3058 old = ficlStackPopPointer(vm->dataStack); 3059 new = ficlRealloc(old, size); 3065 ficlStackPushPointer(vm->dataStack, old);
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit.c | 1683 const secflagset_t *old; local 1698 old = &psec->psf_effective; 1702 old = &psec->psf_inherit; 1706 old = &psec->psf_lower; 1710 old = &psec->psf_upper; 1714 secflags_copy(&new, old); 1717 au_uwrite(au_to_secflags(s, *old));
|
/illumos-gate/usr/src/lib/libzonestat/common/ |
H A D | libzonestat.c | 148 zs_zone_add_usage(zs_zone_t *old, zs_zone_t *new, int func) argument 154 ZS_MAXOF(old->zsz_cpu_cap, new->zsz_cpu_cap); 155 ZS_MAXOF(old->zsz_cpu_shares, new->zsz_cpu_shares); 156 ZS_MAXOF(old->zsz_ram_cap, new->zsz_ram_cap); 157 ZS_MAXOF(old->zsz_locked_cap, new->zsz_locked_cap); 158 ZS_MAXOF(old->zsz_vm_cap, new->zsz_vm_cap); 159 ZS_MAXOF(old->zsz_processes_cap, new->zsz_processes_cap); 160 ZS_MAXOF(old->zsz_lwps_cap, new->zsz_lwps_cap); 161 ZS_MAXOF(old->zsz_shm_cap, new->zsz_shm_cap); 162 ZS_MAXOF(old 349 zs_pset_zone_add_usage(zs_pset_zone_t *old, zs_pset_zone_t *new, int func) argument 524 zs_pset_add_usage(zs_pset_t *old, zs_pset_t *new, int func) argument [all...] |
/illumos-gate/usr/src/cmd/ps/ |
H A D | ps.c | 112 F_OPRI, /* old priority (obsolete) */ 1480 * Print priorities the old way (lower numbers 2223 * "MMM dd" if old format, else the blank is replaced with an '_' so 2227 prtime(timestruc_t st, int width, int old) argument 2236 (void) strftime(sttim, sizeof (sttim), old?
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | df.c | 476 mntdup(struct extmnttab *old) argument 480 new->mnt_special = new_string(old->mnt_special); 481 new->mnt_mountp = new_string(old->mnt_mountp); 482 new->mnt_fstype = new_string(old->mnt_fstype); 483 new->mnt_mntopts = new_string(old->mnt_mntopts); 484 new->mnt_time = new_string(old->mnt_time); 485 new->mnt_major = old->mnt_major; 486 new->mnt_minor = old->mnt_minor;
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | backend.c | 1122 * grab the old list before doing our re-name. 1152 "\"%s\" backup completed, but removing old " 1799 char *old = *out; local 1808 len = (old == NULL)? 0 : strlen(old); 1811 new = realloc(old, len); 1814 if (old == NULL) 1816 old = *out = new;
|
/illumos-gate/usr/src/uts/common/io/usb/clients/audio/usb_ac/ |
H A D | usb_ac.c | 1700 usb_ac_unit_list_t *old = NULL; local 1710 old = uacp->usb_ac_units; 1720 if (old) { 1722 bcopy(old, uacp->usb_ac_units, len); 1724 kmem_free(old, len);
|
/illumos-gate/usr/src/uts/common/sys/ib/clients/rdsv3/ |
H A D | rdsv3.h | 570 rdsv3_conn_transition(struct rdsv3_connection *conn, int old, int new) argument 572 return (atomic_cmpxchg(&conn->c_state, old, new) == old);
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_vfsops.c | 1406 * Copy the old path upto the component right before the symlink 1575 * All the security data is specific to old server. 4020 nfs4_move_mi(mntinfo4_t *mi, servinfo4_t *old, servinfo4_t *new) argument 4036 if (p->saddr.len == old->sv_addr.len && 4037 bcmp(p->saddr.buf, old->sv_addr.buf, p->saddr.len) == 0 && 4074 "old servinfo4 0x%p, new servinfo4 0x%p, " 4075 "old nfs4_server 0x%p, new nfs4_server 0x%p, ", 4076 (void*)mi, (void*)old, (void*)new,
|
/illumos-gate/usr/src/uts/i86pc/vm/ |
H A D | hat_i86.c | 989 hat_t *old = cpu->cpu_current_hat; local 994 if (old != NULL) { 995 if (old == hat) 997 if (old != kas.a_hat) 998 CPUSET_ATOMIC_DEL(old->hat_cpus, cpu->cpu_id); 1119 hat_dup(hat_t *old, hat_t *new, caddr_t addr, size_t len, uint_t flag) argument 1123 ASSERT(old != kas.a_hat); 1335 * Set the new pte, retrieving the old one at the same time. 1989 #define CAS_TLB_INFO(cpu, old, new) \ 1990 atomic_cas_ulong((ulong_t *)&(cpu)->cpu_m.mcpu_tlb_info, (old), (ne 3189 x86pte_t old; local 3668 x86pte_t old, save_old; local [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_io.c | 873 /* Take this rdc structure off the old group list */ 1931 remove_from_many(rdc_k_info_t *old) argument 1933 rdc_u_info_t *uold = &rdc_u_info[old->index]; 1938 rdc_many_enter(old); 1942 print_many(old); 1945 if (old->many_next == old) { 1947 if ((q = old->multi_next) != NULL) { 1948 ASSERT(q->multi_next == old); 1950 old [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_parser.c | 4366 dt_probe_t *old, dt_probe_t *new) 4369 old->pr_xargc, old->pr_xargs, new->pr_xargc, new->pr_xargs); 4371 if (old->pr_nargs != old->pr_xargs && new->pr_nargs != new->pr_xargs) { 4373 old->pr_nargc, old->pr_nargs, new->pr_nargc, new->pr_nargs); 4376 if (old->pr_nargs == old->pr_xargs && new->pr_nargs != new->pr_xargs) { 4384 old 4365 dt_node_provider_cmp(dt_provider_t *pvp, dt_node_t *pnp, dt_probe_t *old, dt_probe_t *new) argument [all...] |