Searched defs:idle (Results 1 - 25 of 35) sorted by relevance

12

/freebsd-head/usr.bin/w/
H A Dpr_time.c103 * Display the idle time.
104 * Returns number of excess characters that were used for long idle time.
107 pr_idle(time_t idle) argument
109 /* If idle more than 36 hours, print as a number of days. */
110 if (idle >= 36 * 3600) {
111 int days = idle / 86400;
112 xo_emit(" {:idle/%dday%s} ", days, days > 1 ? "s" : " " );
119 /* If idle more than an hour, print as HH:MM. */
120 else if (idle >= 3600)
121 xo_emit(" {:idle/
[all...]
H A Dw.c104 static int sortidle; /* sort by idle time */
116 time_t idle; /* idle time of terminal in seconds */ member in struct:entry
261 if ((ep->idle = now - touched) < 0)
262 ep->idle = 0;
403 /* sort by idle time */
411 (*nextp) && from->idle >= (*nextp)->idle;
462 longidle = pr_idle(ep->idle);
/freebsd-head/usr.bin/rusers/
H A Drusers.c100 int idle; local
129 idle = up->utmpidlearr_val[x].ui_idle;
130 sprintf(idle_time, " :%02d", idle);
131 if (idle == MAX_INT)
133 else if (idle == 0)
136 seconds = idle;
143 if (idle > 60)
145 if (idle >= (60 * 60))
148 if (idle >= (24 * 60 * 60))
/freebsd-head/sys/net/altq/
H A Daltq_rio.h68 int idle; /* queue was empty */ member in struct:rio::dropprec_state
70 struct timeval last; /* timestamp when queue becomes idle */
78 used for idle calibration */
H A Daltq_rmclass.c145 * maxidle max value allowed for class 'idle' time estimate (this
169 * not nanoseconds.) Also note that the 'idle' filter computation keeps
1255 int idle, avgidle, pktlen; local
1319 TV_DELTA(&ifd->ifnow_, &cl->last_, idle);
1320 if (idle >= 2000000)
1322 * this class is idle enough, reset avgidle.
1334 idle -= pkt_time;
1337 avgidle += idle - (avgidle >> RM_FILTER_GAIN);
1351 /* set next idle to make avgidle 0 */
/freebsd-head/usr.bin/top/
H A Dmachine.h65 bool idle; /* show idle processes */ member in struct:process_select
76 bool kidle; /* show per-CPU idle threads */
/freebsd-head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzio_inject.c484 * idle the soonest, so we compare the soonest this
493 * lane that will become idle the soonest). This saves a
498 * lane is idle, we want to "submit" the request now so
503 * zi_timer milliseconds after the lane becomes idle.
505 * each lane will become idle, we use that value to
508 hrtime_t idle = handler->zi_record.zi_timer + gethrtime(); local
511 hrtime_t target = MAX(idle, busy);
540 * the lane that will become idle the soonest.
/freebsd-head/libexec/rpc.rusersd/
H A Drusers_proc.c89 syslog(LOG_ERR, "%s: unable to get idle time", display);
115 u_long idle; local
122 if (display && *display && (idle = XqueryIdle(display)) >= 0)
123 return(idle);
125 idle = 0;
134 idle = (kbd_idle < mouse_idle)?kbd_idle:mouse_idle;
148 idle = now - st.st_atime;
149 idle = (idle + 30) / 60; /* secs->mins */
152 return(idle);
[all...]
/freebsd-head/usr.bin/who/
H A Dwho.c67 static int uflag; /* Show idle time */
99 case 'u': /* Show idle time */
169 time_t idle, t; local
178 idle = 0;
184 idle = time(NULL) - sb.st_mtime;
200 if (idle < 60)
202 else if (idle < 24 * 60 * 60)
203 printf("%02d:%02d ", (int)(idle / 60 / 60),
204 (int)(idle / 60 % 60));
/freebsd-head/sys/contrib/ngatm/netnatm/sig/
H A Dsig_uni.c662 int idle; local
664 idle = TAILQ_EMPTY(&uni->calls) &&
668 if ((*mask & UNICFG_PROTO) && idle) {
684 if (!uni->cx.q2932 || idle) {
/freebsd-head/usr.sbin/ppp/
H A Dbundle.h109 unsigned min_timeout; /* Don't idle out before this */
110 } idle; member in struct:bundle::__anon3331
136 } idle; member in struct:bundle
/freebsd-head/lib/libc/isc/
H A Dev_timers.c495 struct timespec idle; local
500 idle = evSubTime(ctx->lastEventTime, this->lastTouched);
501 if (evCmpTime(idle, this->max_idle) >= 0) {
512 this->timer->inter = evSubTime(this->max_idle, idle);
/freebsd-head/sys/powerpc/powermac/
H A Duninorth.c663 unin_chip_sleep(device_t dev, int idle) argument
670 if (idle)
/freebsd-head/contrib/apr-util/misc/
H A Dapr_thread_pool.c232 * there is any. Otherwise, put itself into the idle thread list and waiting
235 * after finishing a task. Otherwise, the thread should be in idle thread list
253 /* Test if not new element, it is awakened from idle */
296 /* busy thread become idle */
302 * Since there is no guarantee that current idle threads are scheduled
322 /* idle thread been asked to stop, will be joined */
774 * This function stop extra idle threads to the cnt.
776 * NOTE: There could be busy threads become idle during this function
779 apr_size_t *cnt, int idle)
786 if (idle) {
778 trim_threads(apr_thread_pool_t *me, apr_size_t *cnt, int idle) argument
[all...]
/freebsd-head/contrib/ntp/lib/isc/
H A Dtimer.c84 isc_time_t idle; member in struct:isc__timer
242 if (isc_time_isepoch(&timer->idle))
245 due = timer->idle;
246 else if (isc_time_compare(&timer->idle, &timer->expires) < 0)
247 due = timer->idle;
448 result = isc_time_add(&now, interval, &timer->idle);
454 isc_time_settoepoch(&timer->idle);
571 result = isc_time_add(&now, interval, &timer->idle);
573 isc_time_settoepoch(&timer->idle);
629 result = isc_time_add(&now, &timer->interval, &timer->idle);
687 isc_boolean_t idle; local
[all...]
/freebsd-head/sys/dev/sym/
H A Dsym_fw1.h123 u32 idle [ 4]; member in struct:SYM_FWA_SCR
125 u32 idle [ 2]; member in struct:SYM_FWA_SCR
262 * arbitration or if it is the idle job.
324 * when the bus becomes idle.
H A Dsym_fw2.h116 u32 idle [ 4]; member in struct:SYM_FWA_SCR
118 u32 idle [ 2]; member in struct:SYM_FWA_SCR
252 * arbitration or if it is the idle job.
297 * when the bus becomes idle.
/freebsd-head/sys/kern/
H A Dkern_clocksource.c68 static sbintime_t getnextcpuevent(int idle);
105 static u_int idletick; /* Run periodic events when idle. */
107 0, "Run periodic events when idle");
126 int idle; /* This CPU is in idle mode. */ member in struct:pcpu_state
219 state->idle = 0;
232 getnextcpuevent(int idle) argument
239 /* Handle hardclock() events, skipping some if CPU is idle. */
241 if (idle) {
255 if (!idle) { /* I
[all...]
/freebsd-head/sys/netinet6/
H A Dip_fw_nat64.h170 uint16_t idle; /* Last used time */ member in struct:_ipfw_nat64lsn_state
191 uint16_t idle; /* Last used time */ member in struct:_ipfw_nat64lsn_state_v1
/freebsd-head/usr.sbin/powerd/
H A Dpowerd.c140 * nice time will be treated as if idle.
496 int ch, mode, mode_ac, mode_battery, mode_none, idle, to; local
682 idle = 0;
692 if (mode == MODE_HIADAPTIVE || idle < 120)
694 else if (idle < 360)
728 if (idle % 32 == 0) {
733 idle++;
750 idle = 0;
769 idle = 0;
830 idle
[all...]
/freebsd-head/sys/netinet/
H A Dtcp_output.c214 int idle, sendalot, curticks; local
262 idle = (tp->t_flags & TF_LASTIDLE) || (tp->snd_max == tp->snd_una);
263 if (idle && (((ticks - tp->t_rcvtime) >= tp->t_rxtcur) ||
267 if (idle) {
270 idle = 0;
584 * either idle or running NODELAY
601 (idle || (tp->t_flags & TF_NODELAY)) &&
719 * idle not doing retransmits or persists
729 * The output side is idle when both timers are zero.
2098 * TODO: Shrink send buffer during idle period
[all...]
/freebsd-head/usr.sbin/bhyve/
H A Dusb_mouse.c249 uint8_t idle; member in struct:umouse_softc::__anon22
630 *udata = sc->hid.idle;
651 sc->hid.idle = UGETW(xfer->ureq->wValue) >> 8;
653 sc->hid.idle));
804 SNAPSHOT_VAR_OR_LEAVE(sc->hid.idle, meta, ret, done);
/freebsd-head/usr.sbin/bsnmpd/modules/snmp_wlan/
H A Dwlan_snmp.h50 uint16_t idle; member in struct:wlan_peer
/freebsd-head/usr.bin/ctlstat/
H A Dctlstat.c88 uint64_t idle; member in struct:ctl_cpu_stats
226 cpu_stats->idle = cp_time[CP_IDLE];
403 ctx->cur_cpu.intr + ctx->cur_cpu.idle;
408 ctx->cur_idle = ctx->cur_cpu.idle;
/freebsd-head/contrib/bsnmp/snmpd/
H A Dsnmpmod.h324 /* the idle function */
325 void (*idle)(void); member in struct:snmp_module

Completed in 159 milliseconds

12