diff --git a/share/man/man9/sleepqueue.9 b/share/man/man9/sleepqueue.9 index 64dfc3bdee5..4a1b48fc766 100644 --- a/share/man/man9/sleepqueue.9 +++ b/share/man/man9/sleepqueue.9 @@ -269,10 +269,28 @@ The sleep queue chain associated with argument .Fa wchan needs to have been locked with a prior call to .Fn sleepq_lock . +.Pp The .Fa pri argument is used to set the priority of the thread when it is awakened. -If it is set to zero, the thread's priority is left alone. +If +.Fa pri +is zero, the threads that are signaled will awake with priority unchanged. +If a thread is in priority class +.Dv TIMESHARE , +and a thread has lower +.Dv TIMESHARE +priority +.Po larger value than +.Fa pri +.Pc +that thread's priority will be set to +.Fa pri . +.Fa pri +must be zero or between +.Dv MIN_PRI +and +.Dv MAX_PRI . .Pp When the thread is resumed, the wait functions return a non-zero value if the thread was awakened due to