Lines Matching refs:sbt
118 * runnable with the specified priority. Sleeps at most sbt units of time
132 const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags)
148 KASSERT(sbt != 0 || mtx_owned(&Giant) || lock != NULL ||
206 if (sbt != 0)
207 sleepq_set_timeout_sbt(ident, sbt, pr, flags);
214 if (sbt != 0 && catch)
216 else if (sbt != 0)
239 sbintime_t sbt, sbintime_t pr, int flags)
266 if (sbt != 0)
267 sleepq_set_timeout_sbt(ident, sbt, pr, flags);
289 if (sbt != 0)
308 * instead of the _sleep() function to do the waiting. The "sbt"
309 * argument must be greater than or equal to zero. A "sbt" value of
310 * zero is equivalent to a "sbt" value of one tick.
313 pause_sbt(const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags)
315 KASSERT(sbt >= 0, ("pause_sbt: timeout must be >= 0"));
318 if (sbt == 0)
319 sbt = tick_sbt;
327 while (sbt >= SBT_1S) {
329 sbt -= SBT_1S;
332 sbt = howmany(sbt, SBT_1US);
333 if (sbt > 0)
334 DELAY(sbt);
338 (flags & C_CATCH) ? PCATCH : 0, wmesg, sbt, pr, flags));