Lines Matching defs:priority
95 * lower the priority briefly to allow interrupts, then return.
96 * The priority to be used (safepri) is machine-dependent, thus this
98 * This priority will typically be 0, or the lowest priority
107 * runnable with the specified priority. Sleeps at most timo/hz seconds
116 tsleep(const volatile void *ident, int priority, const char *wmesg, int timo)
122 KASSERT((priority & ~(PRIMASK | PCATCH)) == 0);
123 KASSERT(ident != &nowake || ISSET(priority, PCATCH) || timo != 0);
153 sleep_setup(ident, priority, wmesg);
158 tsleep_nsec(const volatile void *ident, int priority, const char *wmesg,
164 return tsleep(ident, priority, wmesg, 0);
197 return tsleep(ident, priority, wmesg, (int)to_ticks);
205 msleep(const volatile void *ident, struct mutex *mtx, int priority,
213 KASSERT((priority & ~(PRIMASK | PCATCH | PNORELOCK)) == 0);
214 KASSERT(ident != &nowake || ISSET(priority, PCATCH) || timo != 0);
237 if ((priority & PNORELOCK) == 0) {
245 sleep_setup(ident, priority, wmesg);
251 if ((priority & PNORELOCK) == 0)
258 msleep_nsec(const volatile void *ident, struct mutex *mtx, int priority,
264 return msleep(ident, mtx, priority, wmesg, 0);
277 return msleep(ident, mtx, priority, wmesg, (int)to_ticks);
285 rwsleep(const volatile void *ident, struct rwlock *rwl, int priority,
290 KASSERT((priority & ~(PRIMASK | PCATCH | PNORELOCK)) == 0);
291 KASSERT(ident != &nowake || ISSET(priority, PCATCH) || timo != 0);
296 sleep_setup(ident, priority, wmesg);
302 if ((priority & PNORELOCK) == 0)
309 rwsleep_nsec(const volatile void *ident, struct rwlock *rwl, int priority,
315 return rwsleep(ident, rwl, priority, wmesg, 0);
328 return rwsleep(ident, rwl, priority, wmesg, (int)to_ticks);
444 /* Signal errors are higher priority than timeouts. */
611 * sched_yield(2), drop its priority to ensure its siblings