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

123

/freebsd-current/bin/pkill/tests/
H A Dpgrep-_s_test.sh7 exp_pid="$(ps ax | grep '\[idle\]' | awk '{print $1}')"
10 pid=`pgrep -Sx idle`
16 pid=`pgrep -x idle`
/freebsd-current/usr.bin/w/
H A Dpr_time.c97 * Display the idle time.
98 * Returns number of excess characters that were used for long idle time.
101 pr_idle(time_t idle) argument
103 /* If idle more than 36 hours, print as a number of days. */
104 if (idle >= 36 * 3600) {
105 int days = idle / 86400;
106 xo_emit(" {:idle/%dday%s} ", days, days > 1 ? "s" : " " );
113 /* If idle more than an hour, print as HH:MM. */
114 else if (idle >= 3600)
115 xo_emit(" {:idle/
[all...]
H A Dw.c89 static int sortidle; /* sort by idle time */
101 time_t idle; /* idle time of terminal in seconds */ member in struct:entry
247 if ((ep->idle = now - touched) < 0)
248 ep->idle = 0;
391 /* sort by idle time */
399 (*nextp) && from->idle >= (*nextp)->idle;
450 longidle = pr_idle(ep->idle);
/freebsd-current/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-current/usr.bin/rusers/
H A Drusers.c97 int idle; local
126 idle = up->utmpidlearr_val[x].ui_idle;
127 sprintf(idle_time, " :%02d", idle);
128 if (idle == MAX_INT)
130 else if (idle == 0)
133 seconds = idle;
140 if (idle > 60)
142 if (idle >= (60 * 60))
145 if (idle >= (24 * 60 * 60))
/freebsd-current/libexec/rpc.rusersd/
H A Drusers_proc.c84 syslog(LOG_ERR, "%s: unable to get idle time", display);
110 u_long idle; local
117 if (display && *display && (idle = XqueryIdle(display)) >= 0)
118 return(idle);
120 idle = 0;
129 idle = (kbd_idle < mouse_idle)?kbd_idle:mouse_idle;
143 idle = now - st.st_atime;
144 idle = (idle + 30) / 60; /* secs->mins */
147 return(idle);
[all...]
/freebsd-current/usr.bin/who/
H A Dwho.c64 static int uflag; /* Show idle time */
96 case 'u': /* Show idle time */
166 time_t idle, t; local
175 idle = 0;
181 idle = time(NULL) - sb.st_mtime;
197 if (idle < 60)
199 else if (idle < 24 * 60 * 60)
200 printf("%02d:%02d ", (int)(idle / 60 / 60),
201 (int)(idle / 60 % 60));
/freebsd-current/sys/net/altq/
H A Daltq_rio.h65 int idle; /* queue was empty */ member in struct:rio::dropprec_state
67 struct timeval last; /* timestamp when queue becomes idle */
75 used for idle calibration */
H A Daltq_rio.c232 prec->idle = 1;
336 if (prec->idle) {
337 prec->idle = 0;
440 if (rp->rio_precstate[i].idle == 0) {
441 rp->rio_precstate[i].idle = 1;
H A Daltq_rmclass.c142 * maxidle max value allowed for class 'idle' time estimate (this
166 * not nanoseconds.) Also note that the 'idle' filter computation keeps
1251 int idle, avgidle, pktlen; local
1315 TV_DELTA(&ifd->ifnow_, &cl->last_, idle);
1316 if (idle >= 2000000)
1318 * this class is idle enough, reset avgidle.
1330 idle -= pkt_time;
1333 avgidle += idle - (avgidle >> RM_FILTER_GAIN);
1347 /* set next idle to make avgidle 0 */
/freebsd-current/usr.bin/top/
H A Dmachine.h64 bool idle; /* show idle processes */ member in struct:process_select
75 bool kidle; /* show per-CPU idle threads */
H A Dtop.c91 { "idle-procs", no_argument, NULL, 'I' },
113 { "system-idle-procs", no_argument, NULL, 'z' },
277 ps.idle = true;
337 case 'I': /* show idle processes */
338 ps.idle = !ps.idle;
973 ps.idle = !ps.idle;
975 " %sisplaying idle processes.",
976 ps.idle
[all...]
/freebsd-current/sys/powerpc/powermac/
H A Duninorthvar.h106 extern int unin_chip_sleep(device_t dev, int idle);
/freebsd-current/usr.sbin/powerd/
H A Dpowerd.c137 * nice time will be treated as if idle.
493 int ch, mode, mode_ac, mode_battery, mode_none, idle, to; local
679 idle = 0;
689 if (mode == MODE_HIADAPTIVE || idle < 120)
691 else if (idle < 360)
725 if (idle % 32 == 0) {
730 idle++;
747 idle = 0;
766 idle = 0;
827 idle
[all...]
/freebsd-current/sys/contrib/openzfs/cmd/zed/
H A Dzed.c270 idle:
304 goto idle;
/freebsd-current/sys/netinet6/
H A Dip_fw_nat64.h168 uint16_t idle; /* Last used time */ member in struct:_ipfw_nat64lsn_state
189 uint16_t idle; /* Last used time */ member in struct:_ipfw_nat64lsn_state_v1
/freebsd-current/usr.sbin/ppp/
H A Dbundle.h107 unsigned min_timeout; /* Don't idle out before this */
108 } idle; member in struct:bundle::__anon6704
134 } idle; member in struct:bundle
H A Dbundle.c239 != bundle->phys_type.open && bundle->idle.timer.state == TIMER_STOPPED)
240 /* We may need to start our idle timer */
275 * If it's the first NCP, start the idle timer.
307 * If it's our last NCP, stop the idle timer.
825 bundle.cfg.idle.timeout = NCP_IDLE_TIMEOUT;
826 bundle.cfg.idle.min_timeout = 0;
881 memset(&bundle.idle.timer, '\0', sizeof bundle.idle.timer);
882 bundle.idle.done = 0;
914 timer_Stop(&bundle->idle
[all...]
/freebsd-current/lib/libc/isc/
H A Dev_timers.c489 struct timespec idle; local
494 idle = evSubTime(ctx->lastEventTime, this->lastTouched);
495 if (evCmpTime(idle, this->max_idle) >= 0) {
506 this->timer->inter = evSubTime(this->max_idle, idle);
/freebsd-current/sys/kern/
H A Dkern_clocksource.c67 static sbintime_t getnextcpuevent(struct pcpu_state *state, int idle);
104 static u_int idletick; /* Run periodic events when idle. */
106 0, "Run periodic events when idle");
125 int idle; /* This CPU is in idle mode. */ member in struct:pcpu_state
218 state->idle = 0;
231 getnextcpuevent(struct pcpu_state *state, int idle) argument
236 /* Handle hardclock() events, skipping some if CPU is idle. */
238 if (idle) {
253 if (!idle) { /* I
[all...]
/freebsd-current/usr.sbin/bhyve/
H A Dusb_mouse.c245 uint8_t idle; member in struct:umouse_softc::__anon8
625 *udata = sc->hid.idle;
646 sc->hid.idle = UGETW(xfer->ureq->wValue) >> 8;
648 sc->hid.idle));
797 SNAPSHOT_VAR_OR_LEAVE(sc->hid.idle, meta, ret, done);
/freebsd-current/sys/dev/sym/
H A Dsym_fw.h74 SYM_GEN_A(s, idle) SYM_GEN_A(s, ungetjob) \
/freebsd-current/sys/arm/ti/
H A Dti_sysc.c117 /* master idle / slave idle mode defined in 8.1.3.2.1 / 8.1.3.2.2 */
351 parse_idle(struct ti_sysc_softc *sc, const char *name, uint32_t *idle) { argument
372 idle[i] = value[i];
393 idle[i] = -1;
514 if (OF_hasprop(node, "ti,no-idle-on-init"))
519 if (OF_hasprop(node, "ti,no-idle"))
525 "no-reset-on-init %d, no-idle-on-init %d, no-idle %d\n",
/freebsd-current/sys/dev/nvme/
H A Dnvme_qpair.c1027 bool idle = false; local
1089 idle = true;
1118 idle = false;
1138 idle = false; /* We want to keep polling */
1150 idle = false; /* We want to keep polling */
1157 if (!idle) {
/freebsd-current/usr.bin/ctlstat/
H A Dctlstat.c90 uint64_t idle; member in struct:ctl_cpu_stats
240 cpu_stats->idle = cp_time[CP_IDLE];
635 ctx->cur_cpu.intr + ctx->cur_cpu.idle;
640 ctx->cur_idle = ctx->cur_cpu.idle;

Completed in 198 milliseconds

123