Searched refs:idle (Results 1 - 25 of 65) sorted by relevance

123

/freebsd-11-stable/bin/pkill/tests/
H A Dpgrep-_s_test.sh8 exp_pid="$(ps ax | grep '\[idle\]' | awk '{print $1}')"
11 pid=`pgrep -Sx idle`
17 pid=`pgrep -x idle`
/freebsd-11-stable/usr.bin/w/
H A Dpr_time.c101 * Display the idle time.
102 * Returns number of excess characters that were used for long idle time.
105 pr_idle(time_t idle) argument
107 /* If idle more than 36 hours, print as a number of days. */
108 if (idle >= 36 * 3600) {
109 int days = idle / 86400;
110 xo_emit(" {:idle/%dday%s} ", days, days > 1 ? "s" : " " );
117 /* If idle more than an hour, print as HH:MM. */
118 else if (idle >= 3600)
119 xo_emit(" {:idle/
[all...]
H A Dw.c101 static int sortidle; /* sort by idle time */
113 time_t idle; /* idle time of terminal in seconds */ member in struct:entry
249 if ((ep->idle = now - touched) < 0)
250 ep->idle = 0;
329 /* sort by idle time */
337 (*nextp) && from->idle >= (*nextp)->idle;
442 longidle = pr_idle(ep->idle);
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpv/xdt/
H A Dtst.schedenable.ksh57 xdt:sched::idle-off-cpu,
58 xdt:sched::idle-on-cpu,
/freebsd-11-stable/libexec/rpc.rusersd/
H A Drusers_proc.c87 syslog(LOG_ERR, "%s: unable to get idle time", display);
113 u_long idle; local
120 if (display && *display && (idle = XqueryIdle(display)) >= 0)
121 return(idle);
123 idle = 0;
132 idle = (kbd_idle < mouse_idle)?kbd_idle:mouse_idle;
146 idle = now - st.st_atime;
147 idle = (idle + 30) / 60; /* secs->mins */
150 return(idle);
[all...]
/freebsd-11-stable/usr.bin/rusers/
H A Drusers.c98 int idle; local
127 idle = up->utmpidlearr_val[x].ui_idle;
128 sprintf(idle_time, " :%02d", idle);
129 if (idle == MAX_INT)
131 else if (idle == 0)
134 seconds = idle;
141 if (idle > 60)
143 if (idle >= (60 * 60))
146 if (idle >= (24 * 60 * 60))
/freebsd-11-stable/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-11-stable/contrib/top/
H A Dmachine.h69 int idle; /* show idle processes */ member in struct:process_select
79 int kidle; /* show per-CPU idle threads */
H A Dtop.c355 ps.idle = Yes;
416 case 'I': /* show idle processes */
417 ps.idle = !ps.idle;
1094 ps.idle = !ps.idle;
1096 " %sisplaying idle processes.",
1097 ps.idle ? "D" : "Not d");
1220 " %sisplaying system idle process.",
/freebsd-11-stable/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-11-stable/contrib/apr/misc/unix/
H A Drandbyte_os2.inc59 * idle / busy / interrupt cycle counts which should provide very good
73 ULONG ulIdleLow; /* Low 32 bits of idle time */
74 ULONG ulIdleHigh; /* High 32 bits of idle time */
/freebsd-11-stable/sys/powerpc/powermac/
H A Duninorthvar.h105 extern int unin_chip_sleep(device_t dev, int idle);
/freebsd-11-stable/sys/net/altq/
H A Daltq_rio.h106 int idle; /* queue was empty */ member in struct:rio::dropprec_state
108 struct timeval last; /* timestamp when queue becomes idle */
116 used for idle calibration */
H A Daltq_rio.c252 prec->idle = 1;
356 if (prec->idle) {
357 prec->idle = 0;
460 if (rp->rio_precstate[i].idle == 0) {
461 rp->rio_precstate[i].idle = 1;
/freebsd-11-stable/usr.sbin/powerd/
H A Dpowerd.c488 int ch, mode, mode_ac, mode_battery, mode_none, idle, to; local
669 idle = 0;
679 if (mode == MODE_HIADAPTIVE || idle < 120)
681 else if (idle < 360)
715 if (idle % 32 == 0) {
720 idle++;
737 idle = 0;
756 idle = 0;
817 idle = 0;
/freebsd-11-stable/usr.sbin/ppp/
H A Dbundle.h109 unsigned min_timeout; /* Don't idle out before this */
110 } idle; member in struct:bundle::__anon8824
136 } idle; member in struct:bundle
H A Dbundle.c241 != bundle->phys_type.open && bundle->idle.timer.state == TIMER_STOPPED)
242 /* We may need to start our idle timer */
277 * If it's the first NCP, start the idle timer.
309 * If it's our last NCP, stop the idle timer.
830 bundle.cfg.idle.timeout = NCP_IDLE_TIMEOUT;
831 bundle.cfg.idle.min_timeout = 0;
886 memset(&bundle.idle.timer, '\0', sizeof bundle.idle.timer);
887 bundle.idle.done = 0;
919 timer_Stop(&bundle->idle
[all...]
/freebsd-11-stable/sys/dev/patm/
H A Dif_patm.c374 u_int base, idle; local
377 idle = sc->mmap->tst1base + sc->mmap->tst_size;
385 sc->tst_jump[1] = idle + sc->mmap->tst_size - 1;
387 sc->tst_base[1] = idle;
396 patm_sram_write(sc, idle + i, IDT_TST_VBR);
397 patm_sram_write(sc, sc->tst_jump[1], IDT_TST_BR | (idle << 2));
/freebsd-11-stable/lib/libc/isc/
H A Dev_timers.c493 struct timespec idle; local
498 idle = evSubTime(ctx->lastEventTime, this->lastTouched);
499 if (evCmpTime(idle, this->max_idle) >= 0) {
510 this->timer->inter = evSubTime(this->max_idle, idle);
/freebsd-11-stable/sys/netinet6/
H A Dip_fw_nat64.h166 uint16_t idle; /* Last used time */ member in struct:_ipfw_nat64lsn_state
/freebsd-11-stable/sys/kern/
H A Dkern_clocksource.c66 static sbintime_t getnextcpuevent(int idle);
103 static u_int idletick; /* Run periodic events when idle. */
105 0, "Run periodic events when idle");
124 int idle; /* This CPU is in idle mode. */ member in struct:pcpu_state
217 state->idle = 0;
230 getnextcpuevent(int idle) argument
237 /* Handle hardclock() events, skipping some if CPU is idle. */
239 if (idle) {
253 if (!idle) { /* I
[all...]
/freebsd-11-stable/sys/dev/sym/
H A Dsym_fw.h73 SYM_GEN_A(s, idle) SYM_GEN_A(s, ungetjob) \
/freebsd-11-stable/usr.sbin/bhyve/
H A Dusb_mouse.c246 uint8_t idle; member in struct:umouse_softc::__anon8713
627 *udata = sc->hid.idle;
648 sc->hid.idle = UGETW(xfer->ureq->wValue) >> 8;
650 sc->hid.idle));
/freebsd-11-stable/sys/netinet/
H A Dtcp_output.c197 int idle, sendalot; local
236 idle = (tp->t_flags & TF_LASTIDLE) || (tp->snd_max == tp->snd_una);
237 if (idle && ticks - tp->t_rcvtime >= tp->t_rxtcur)
240 if (idle) {
243 idle = 0;
511 * TODO: Shrink send buffer during idle periods together
600 * either idle or running NODELAY
617 (idle || (tp->t_flags & TF_NODELAY)) &&
731 * idle not doing retransmits or persists
741 * The output side is idle whe
[all...]
/freebsd-11-stable/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.

Completed in 238 milliseconds

123