Searched defs:delta (Results 1 - 25 of 187) sorted by relevance

12345678

/illumos-gate/usr/src/uts/common/syscall/
H A Dalarm.c61 clock_t delta = (uint_t)deltat; local
87 * to that limit. If delta is negative we can
88 * assume a wrap has occurred so peg delta in
91 if (delta > (LONG_MAX / hz) || delta < 0)
92 delta = LONG_MAX / hz;
94 if (delta)
95 p->p_alarmid = realtime_timeout(sigalarm2proc, p, delta * hz);
H A Dadjtime.c46 adjtime(struct timeval *delta, struct timeval *olddelta) argument
58 if (copyin(delta, &atv, sizeof (atv)))
63 if (copyin(delta, &atv32, sizeof (atv32)))
72 * The SVID specifies that if delta is 0, then there is
H A Dpsecflags.c25 const secflagdelta_t *delta; member in struct:psdargs
29 secflags_apply_delta(secflagset_t *set, const secflagdelta_t *delta) argument
31 if (delta->psd_ass_active) {
32 secflags_copy(set, &delta->psd_assign);
34 if (!secflags_isempty(delta->psd_add)) {
35 secflags_union(set, &delta->psd_add);
37 if (!secflags_isempty(delta->psd_rem)) {
38 secflags_difference(set, &delta->psd_rem);
59 if (!psecflags_validate_delta(&p->p_secflags, args->delta)) {
65 audit_psecflags(p, args->which, args->delta);
[all...]
H A Dlwp_timer.c58 timespec_t now, delta; local
71 delta = lwptp->lwpt_rqtime;
72 timespecsub(&delta, &now);
74 lwp_timer_timeout, lwptp, ts2hrt(&delta), nsec_per_tick,
148 timespec_t now, delta; local
161 delta = lwptp->lwpt_rqtime;
162 timespecsub(&delta, &now);
164 lwp_timer_timeout, lwptp, ts2hrt(&delta), nsec_per_tick,
/illumos-gate/usr/src/cmd/mailx/
H A Dstralloc.c127 register unsigned s, delta; local
140 delta = s - (sp->s_nextFree - (char *)optr);
141 if (delta <= sp->s_nleft) {
142 sp->s_nextFree += delta;
143 sp->s_nleft -= delta;
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_ctl.c81 int64_t delta = 0; local
83 (void) nvlist_lookup_int64(nvl, FMD_CTL_ADDHRT_DELTA, &delta);
84 fmd_time_addhrtime(delta);
H A Dfmd_timerq.c41 * Install a new timer to fire after at least 'delta' nanoseconds have elapsed.
49 fmd_timer_f *func, void *arg, fmd_event_t *ep, hrtime_t delta)
72 if (delta < 0)
73 delta = 0; /* ensure delta is at least 0ns from now */
75 if (base + delta < base)
78 hrt = base + delta;
109 ids->ids_name, id, delta));
124 hrtime_t delta = 0; local
139 delta
48 fmd_timerq_install(fmd_timerq_t *tmq, fmd_idspace_t *ids, fmd_timer_f *func, void *arg, fmd_event_t *ep, hrtime_t delta) argument
[all...]
H A Dfmd_eventq.c121 hrtime_t new, delta; local
127 delta = new - eqs->eqs_wlastupdate.fmds_value.ui64;
132 eqs->eqs_wlentime.fmds_value.ui64 += delta * wcnt;
133 eqs->eqs_wtime.fmds_value.ui64 += delta;
239 hrtime_t new, delta; local
284 delta = new - eqs->eqs_wlastupdate.fmds_value.ui64;
292 eqs->eqs_wlentime.fmds_value.ui64 += delta * wcnt;
293 eqs->eqs_wtime.fmds_value.ui64 += delta;
313 hrtime_t new, delta; local
318 delta
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dpsecflags.c31 secflagdelta_t *delta)
37 return (__psecflagsset(&procset, which, delta));
30 psecflags(idtype_t idtype, id_t id, psecflagwhich_t which, secflagdelta_t *delta) argument
/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_log.c53 hrtime_t delta; local
73 * For now, compute the delta between the previous record and this one
78 delta = (rec_sec - ilf->ilf_sec) * NANOSEC;
79 delta += (hrtime_t)rec_nsec - (hrtime_t)ilf->ilf_nsec;
81 if (delta < 0)
82 die("record [%d] timestamp delta too large\n", ilf->ilf_index);
84 if (delta > 0)
85 inj_cmds_add(inj_cmd_addhrt(delta));
H A Dinj_cmds.c147 inj_cmd_addhrt(hrtime_t delta) argument
161 (errno = nvlist_add_int64(ev->defn_nvl, "delta", delta)) != 0)
/illumos-gate/usr/src/uts/intel/asm/
H A Datomic.h113 fxn(volatile type1 *target, type2 delta) \
118 : "i" reg (delta) \
137 atomic_add_ptr(volatile void *target, ssize_t delta) argument
144 : "ir" (delta)
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_umemglue.c91 umem_atomic_add_32_nv(uint32_t *target, int32_t delta) argument
93 return (*target = *target + delta);
97 umem_atomic_add_64(uint64_t *target, int64_t delta) argument
99 *target = *target + delta;
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_tnode.c63 size_t delta, /* size needed */
66 pgcnt_t pages = btopr(delta);
83 (anon_try_resv_zone(delta, zone) == 0))) {
96 tp, delta);
105 * because anon_unresv does a btopr(delta)
111 size_t delta)
116 anon_unresv_zone(delta, tm->tm_vfsp->vfs_zone);
119 tm->tm_anonmem -= btopr(delta);
122 TRACE_2(TR_FAC_VM, TR_ANON_TMPFS, "anon tmpfs:%p %lu", tp, delta);
234 size_t delta; local
60 tmp_resv( struct tmount *tm, struct tmpnode *tp, size_t delta, int pagecreate) argument
108 tmp_unresv( struct tmount *tm, struct tmpnode *tp, size_t delta) argument
[all...]
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dxpv_timestamp.c162 hrtime_t delta = xpv_getsystime() - hrtime_suspend_time; local
164 if (delta < 0)
165 hrtime_addend += -delta;
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dcond.c106 clock_t delta; local
108 delta = abstime - ddi_get_lbolt();
109 return (cv__twait(cv, mp, delta, 0));
115 clock_t delta; local
117 delta = abstime - ddi_get_lbolt();
118 return (cv__twait(cv, mp, delta, 1));
122 cv_reltimedwait(kcondvar_t *cv, kmutex_t *mp, clock_t delta, time_res_t res) argument
126 return (cv__twait(cv, mp, delta, 0));
130 cv_reltimedwait_sig(kcondvar_t *cv, kmutex_t *mp, clock_t delta, argument
135 return (cv__twait(cv, mp, delta,
146 cv__twait(kcondvar_t *cv, kmutex_t *mp, clock_t delta, int sigok) argument
[all...]
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_timeout.c309 hrtime_t delta; local
314 delta = (hrtime_t)5 * NANOSEC;
318 to.tv_sec = tim.tv_sec + (delta / NANOSEC);
320 (delta % NANOSEC);
341 delta = next_timeout - current_time;
342 if (delta <= 0)
/illumos-gate/usr/src/lib/libbsdmalloc/common/
H A Dmalloc.bsd43.c196 intptr_t delta; local
202 delta = LONG_MAX;
203 while (delta > 0) {
204 if (sbrk(delta) == (void *)-1) {
210 delta = amt;
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dstats.c248 hrtime_t delta = local
252 delta, sp->desc);
/illumos-gate/usr/src/cmd/audio/audiotest/
H A Dwavedata.c131 int predictor[2], delta[2], samp1[2], samp2[2]; local
148 delta[i] = (short)le_int(&buf[x], 2);
178 new = pred + (delta[i] * i_delta);
181 delta[i] = delta[i] *
183 if (delta[i] < 16)
184 delta[i] = 16;
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip2mac.c190 uint64_t delta; local
241 delta = TICK_TO_MSEC(ddi_get_lbolt64()) - ncec->ncec_last;
244 delta < (uint64_t)ill->ill_reachable_time) {
259 delta = TICK_TO_MSEC(ddi_get_lbolt64()) - ncec->ncec_last;
266 delta < (uint64_t)ill->ill_reachable_time) {
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_syscalls.c125 int hdrlen, delta; local
192 delta = 1 + 2 + 2;
193 hdrlen = 1 + 4 + delta + (sizeof (int32_t) * 2);
200 delta = 1 + 2 + 2;
201 hdrlen = 1 + 4 + delta + (sizeof (int64_t) * 2);
217 delta = 1 + 2 + 2 + 4 + host_len;
218 hdrlen = 1 + 4 + delta + (sizeof (int32_t) * 2);
234 delta = 1 + 2 + 2 + 4 + host_len;
235 hdrlen = 1 + 4 + delta + (sizeof (int64_t) * 2);
306 hadr.adr_now += delta;
[all...]
/illumos-gate/usr/src/common/secflags/
H A Dsecflags.c106 psecflags_validate_delta(const psecflags_t *sf, const secflagdelta_t *delta) argument
108 if (delta->psd_ass_active) {
113 if (!secflags_issubset(delta->psd_assign, sf->psf_upper) ||
114 !secflags_issuperset(delta->psd_assign, sf->psf_lower)) {
118 if (!secflags_issubset(delta->psd_assign, PROC_SEC_MASK))
122 if (!secflags_isempty(delta->psd_add)) {
123 if (!secflags_issubset(delta->psd_add, sf->psf_upper)) {
129 if (!secflags_isempty(delta->psd_rem)) {
130 if (secflags_intersection(delta->psd_rem,
136 if (!secflags_issubset(delta
[all...]
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmetarpcopen.c335 long delta; local
386 delta = now.tv_sec -
388 if (delta > CC_TTL_MAX) {
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dauth_time.c199 ulong_t delta; local
646 delta = (thetime > tv.tv_sec) ? thetime - tv.tv_sec :
648 td->tv_sec = (thetime < tv.tv_sec) ? - delta : delta;

Completed in 195 milliseconds

12345678