From cf2acd69e348ff31a325f2d31f361c6e542aa1b2 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Fri, 24 Sep 2004 19:58:47 +0000 Subject: [PATCH] Document that kthread_exit()ing will cause a wakeup(9) on the thread handle. MFC after: 1 week --- share/man/man9/kthread.9 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/share/man/man9/kthread.9 b/share/man/man9/kthread.9 index 7006b33a672..69311c69786 100644 --- a/share/man/man9/kthread.9 +++ b/share/man/man9/kthread.9 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd October 24, 2000 +.Dd September 24, 2004 .Dt KTHREAD 9 .Os .Sh NAME @@ -141,6 +141,11 @@ letting the main function return to its caller. The .Fa ecode argument specifies the exit status of the thread. +While exiting, the function +.Xr exit1 9 +will initiate a call to +.Xr wakeup 9 +on the thread handle. .Pp The .Fn kthread_resume , @@ -258,8 +263,10 @@ flag was specified in the parameter. .El .Sh SEE ALSO +.Xr exit1 9 , .Xr rfork 2 , -.Xr SYSINIT 9 +.Xr SYSINIT 9 , +.Xr wakeup 9 .Sh HISTORY The .Fn kproc_start