svn commit: r185119 - user/lstewart/misc_7.x/share/man/man9

Lawrence Stewart lstewart at FreeBSD.org
Wed Nov 19 20:27:44 PST 2008


Author: lstewart
Date: Thu Nov 20 04:27:43 2008
New Revision: 185119
URL: http://svn.freebsd.org/changeset/base/185119

Log:
  Merge r185117 kthread(9) man page changes from misc_8.x

Modified:
  user/lstewart/misc_7.x/share/man/man9/   (props changed)
  user/lstewart/misc_7.x/share/man/man9/kthread.9

Modified: user/lstewart/misc_7.x/share/man/man9/kthread.9
==============================================================================
--- user/lstewart/misc_7.x/share/man/man9/kthread.9	Thu Nov 20 04:23:18 2008	(r185118)
+++ user/lstewart/misc_7.x/share/man/man9/kthread.9	Thu Nov 20 04:27:43 2008	(r185119)
@@ -141,11 +141,17 @@ letting the main function return to its 
 The
 .Fa ecode
 argument specifies the exit status of the thread.
-While exiting, the function
-.Xr exit1 9
-will initiate a call to
+While exiting, the function will call
 .Xr wakeup 9
-on the thread handle.
+on the calling thread's handle.
+If another thread/process needs to wait for the calling thread to exit,
+.Xr mtx_sleep 9
+can be used in the waiting thread/process with the
+.Fa chan
+argument set to the exiting thread's handle.
+This will put the waiting thread/process to sleep until the exiting thread
+has made its final call to
+.Fn kthread_exit .
 .Pp
 The
 .Fn kthread_resume ,
@@ -264,8 +270,7 @@ parameter.
 .El
 .Sh SEE ALSO
 .Xr rfork 2 ,
-.Xr exit1 9 ,
-.Xr SYSINIT 9 ,
+.Xr mtx_sleep 9 ,
 .Xr wakeup 9
 .Sh HISTORY
 The


More information about the svn-src-user mailing list